Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
su - user -c = doesn't use env!
Name: Jodie Date: November 27, 2001 at 09:35:53 Pacific
Comment:
I have a script which has a command like this: su - mqm -c "cd $HOME/scripts;./startmqm.ksh" However, when this command executes, the value of $HOME is that of the user that executed the "su" command, not of user "mqm". Is this the way command resolution has always worked for "su"? I know that switching to single quotes will resolve the problem, but this command used to work as written, so the change is confusing.
Summary: jefro: Sorry I must disagree wtih you. At least in Solaris su <user id> doesn't change the user environment - including environmental variables. To change the environment, you must execute su - &...
Summary: When I switch on my new SunBlade1000, the first message i see is: "Can't find keyboard table for keyboard layout code 17 Using USA keyboard table" When I booting Solaris 8 , i see: "loadkeys: layout 1...
Summary: With solaris 9 installations (have loaded recommended patch clusters), both under CDE and gnome 2, the user Display Lock is active. When it turns on it doesn't accept any password, either the user's o...