On Mon, 23 Mar 1998, Simeon Wood wrote:

> Hello,
> 
>       I am wondering if someone has some input for my question. I am
> under the impression that the less I login as root the better off I am.
> Since when I am as root the odds are there that something I am doing could
> crash the system, un likely but possible right? 
> 
>       My Question is how can I log into my boxas root from a non root
> account?I start my non suid (Super User ID?) account then I try to telnet
> into myself and login as root but it takes the passwords and rejects it. I
> can
        suid= set user id - lets say bob has a program /home/bob/test
owned by bob and which has suid. That means that when someone (not bob) 
runs that program (if he has permission), he becomes the owner of that
program, in this case, bob . 
        
        to become root from remote:
        login as root at the console. Now make youself an account. Lets
say you want to create for yourself an user named  sim. To do that type:

        adduser sim     

        Noe set a password for that user, by typing :
        
        passwd sim

        Now go to some other machine and login as sim, the user you just
created, with the password you set for him. To become root type like this:
        su -
        You can use su to become any other user, by typing
        su <that_user_name> 
        You'll be prompted for that users password . su - is equivalent to
su - root .
        If you are root you can type su - <some_user_name> and become that
user without needing a password.
                

> login in again as myself and if I am root I can login as root again. But
> if I am not root I cannot login unless I leave the non suid account. I
> have looked for settings in /etc/ that may affect logins but have not
> found any to match my situation. Any ideas? Thanks for any input you may
> have :-)

        look in /etc/securetty . you'll se there the consoles from where
root can login. It is recomended to leave them like that.

**********************************************************
Andrei Postolache, Romania, [EMAIL PROTECTED]           
In these times computers are happy ... they have Linux ...
**********************************************************
        
> 
>       -Simeon Wood
>       [EMAIL PROTECTED]
> 
>       BTW The reason I would like to login as root from a non root
> account is that if I have to do something that requires root I don't have
> to drop everything and logout and back in as root. Thanks again.
> 
> 


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to