537 reputation
219
bio website 127.0.0.1
location Mumbai, India
age 27
visits member for 2 years, 3 months
seen Jul 7 at 7:30

Sysadmin leaning towards *nix, avid fan of the DC Universe, amateur programmer who's learning Python at the moment (and regex gives me nightmares). Oh, and I am a foodie extraordinaire ;)

I am nerdier than 99% of all people. Are you a nerd? Click here to take the Nerd Test, get nerdy images and jokes, and write on the nerd forum!


May
29
comment To know if a file was downloaded or not
Something similar to this, right? XX.XX.XXX.XXX - - [27/May/2014:18:52:14 -0400] "GET /filename HTTP/1.1" 200 2896
Aug
31
comment lrswipkxtecda in Cyrus
Sorry, updated question to add context. And thanks 'coz this is quite helpful. So if I understood this, the string specifies what actions are permitted by that particular user, right? also, what do k,x,t and e stand for?
Aug
23
comment inotify in bash script doesn't work with ldapadd command
the ldif file was copied from the remote machine to the current machine via scp (and named with extension .tmp). Then the script in the current machine removes the .tmp extention (using mv) and then runs ldapadd; In essence two scripts - one on the remote machine to generate the ldif and copy it here and the second one on the current machine to add it to the LDAP directory.
Aug
23
comment inotify in bash script doesn't work with ldapadd command
Copying to user.ldif.tmp, then moving to user.ldif worked!! :) Phew!! Thanks mindthemonkey and @Iain - I learnt some new things today... Could you edit the answer so that I can accept it please?
Aug
23
comment inotify in bash script doesn't work with ldapadd command
The above code doesn't give any output (cat $ldf). I am trying your suggestion of a temp file as we speak.
Aug
23
comment inotify in bash script doesn't work with ldapadd command
yes. Also, if I run the script without the while inotifywait..., it adds the ldap entry successfully.
Aug
23
comment inotify in bash script doesn't work with ldapadd command
The other commands like echo, rm, cp, mv and ls (these are the ones I tried) work within the while loop. As far as writing to the file is concerned, the file in it's entirety is being copied from another machine directly into this location.
Aug
23
comment inotify in bash script doesn't work with ldapadd command
Ok. This is the output after including set -x - ldapadd -w ldappassword -D cn=Manager,dc=mydomain,dc=com -f /home/myuser/newldif/user.ldif - For some reason, the quotes around the password and the rootdn have been removed. Is that what is causing it to skip the ldapadd command?
Aug
23
comment inotify in bash script doesn't work with ldapadd command
@Iain - #!/bin/bash is already the first line of the script. Where do I add the set -x?
Aug
20
comment enabling shell access for cyrus user
are there any security risks for this?
Aug
19
comment Reconstructing cyrus mailboxes with sub-folders
Ok. I ran reconstruct -rf user/testuser and it created the sub-folders as you said. But all the mails are unread in the sub-folders..
Aug
16
comment Getting the LDAP password from the LDAP Directory
While I agree that yours is the more efficient way, and ultimately that is what we want to achieve, we're just trying this method out before we get to a master-slave setup
Aug
16
comment Getting the LDAP password from the LDAP Directory
@Isaac - I never knew that part. Thanks
Aug
16
comment Getting the LDAP password from the LDAP Directory
Thanks, Lacek. Let me check this out now...
Aug
12
comment Sync between two Mail Servers
Thanks for the suggestion. I'll definitely look into it.
Jun
21
comment How to detect hypervisor host name/IP from inside a KVM virtual machine?
This guy says its not possible, but I am still looking around...
Jun
20
comment I cannot ping my guest operating systems via Bridged Network Connection
Have you tried changing the settings for the NIC for the guest machine? I believe there is an option there to change it to Bridge/NAT/custom network.
Jun
20
comment I cannot ping my guest operating systems via Bridged Network Connection
What have you used to Virtualize? VirtualPC, VMware or something else?
Jun
18
comment KVM CLI install for CentOS 6.3 defaults to Minimal Install
yes, that did the trick. while allotting higher memory, like say 768M or 1024M, it takes me to the GUI console to install and select the type of OS. Just wondering if there is a way to specify it at the time of virt-install..... (I am accepting this answer b'coz it answered my question). Thanks a lot Vilelm...
Jun
18
comment Exim dnslookup driver - router dnslookup: cannot find router driver "dnslookup
Thanks for the answer. It worked exactly as you said.