On Tue, 2006-09-19 at 16:42 +0200, Hylton Conacher(ZR1HPC) wrote:
Peo Nilsson wrote:
> Hi list!
> 
> I was told that I´t wasn´t good to alow root logins (I´m new to Suse).
> I then used YAST to click ~"don´t alow root logins" thinking I would be
> able to "su" when I needed to be root.
> I then found out that "su" doesn´t work so I tried "sudo" instead, but 
> that doesn´t work either.
> 
> Is there any way for me to enter my current system as root now/again?
When you used su to be root what was the exact command you issued as 
there are two, both with different results. Both

I execute ´su´ and then the bash shell asks for root password, when I type in the correct
password the shell responds with ´incorrect password´. I´m 100% sure that the password I type
is correct. Now I also have tried ´su root´ with the same result.


Plain 'su'  or 'su root' when you are a user will ask you for the root 
password and change your command prompt fro a $ to a #. However the path 
used will still be the same as the user you are su'ing from ie it will 
not include the locations root needs to execute commands.

If you do 'su -' it will again ask for the root password and change your 
coammnd prompt from a $ to a #.  Now however, because of the dash, you 
are using roots path anf therefore the root programs you try and execute 
will work as they are able to access the required libraries they need 
fro the locations listed in the PATH.

For more reading, please see 'info su'.

HTH

Regards
Hylton
-- 
========================================================================
Currently using unpatched SuSE 9.2 Professional with KDE and Mozilla 1.7.2
Linux user # 229959 at http://counter.li.org
========================================================================




/Peo