su user -c

2013-06-06 Thread Pol Hallen
Hi all :-) this is the part of my script: email0=us...@domain0.org;email1=us...@domain1.org;name=user0;username=user1;domainname=domain0;echo | mutt -s test message $name -b email0 email1 if I run this script of own user, runs correctly but when (inside the script) I use: su user -c email0=us

Re: su user -c

2013-06-06 Thread Guido Martínez
user, runs correctly but when (inside the script) I use: su user -c email0=us...@domain0.org;email1=us...@domain1.org;name=user0;username=user1;domainname=domain0;echo | mutt -s test message $name -b email0 email1 You need to quote the command. su reads just 1 argument after -c and invokes

su $USER -c rm ... not working from gdm script

2003-08-19 Thread Robert C. Mosher II
I am trying to delete a file created by a user in their home directory through the gdm PostSession script. This is proving difficult since /home is an nfs mounted directory. This is the line of the script. su $USER -c rm -f /home/$USER/.smb.lock I know $USER is correctly set, and this script