|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
checking "su" environment
Hi, I need to check out what the environment would be expected to look like if I actually logged in as a root.After THOROUGH STUDY of 'man' I think the command should be:
"su - ".But according to 'man' this is the case if the login shell is Bourne shell (man reads :.. /usr/bin/sh..) or an empty string in the specific user's password file entry.My login shell is csh so when I run this cmd it asks me for password. Do I have the command right? What is the same cmd for csh? Thanks in advance. P.S. In response to guggach'es accusations: I wish I were. |
|
#2
|
|||
|
|||
|
su always will ask you for a passwd as long you are not the boss.
su [username] just change the usr-id su - [username] does the same but the new shell inherit the environ settings of that user, sourcing the appropriate .profile, .login and .??rc, according to what's defined in /etc/passwd Quote:
????? to make alias in ksh, put in ~/.kshrc alias pollo=palla in csh, put in ~/.cshrc alias pollo palla if you need args alias pollo 'palla \!*' this will change: pollo aa bb cc in palla aa bb cc PS: csh (on cmd line) is my preferred tool, as script langauge a c??p
__________________
working on Solaris[5-9], preferred languages french and C. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > checking "su" environment |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|