LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-18-2005, 03:48 PM   #1
joshknape
Member
 
Registered: Jul 2005
Posts: 216

Rep: Reputation: 30
adminstrator login while auto-login is on?


I have set auto-login for my user name, as nobody else uses my PC and I don't like stopping to enter a password. But what if I want to log in as administrator? I need the password box for that, and auto-login bypasses it.
 
Old 07-18-2005, 03:51 PM   #2
halo14
Senior Member
 
Registered: Apr 2004
Location: Surprise, AZ
Distribution: Debian | CentOS | Arch
Posts: 1,103

Rep: Reputation: 45
so log back out after it logs on.. then you can get to the login manager..
 
Old 07-19-2005, 03:46 AM   #3
Michael Johnson
Member
 
Registered: Jul 2005
Location: Wagga Wagga, Australia
Posts: 262

Rep: Reputation: 30
It is a very bad thing to login to a GUI as root. You shold NEVER do it. This what leaves windoze so open to attack by viruses, trojans and other nasties.
The quickest is to open a terminal and use "su".
You can also ALT-CTRL-F1 to obtain a command login prompt and use ALT-F7 to return to your GUI.
 
Old 07-19-2005, 04:22 AM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Even better, as root you can set sudo access (/etc/sudoers), which basically gives a user root priveledges on commands when you prefix sudo on it so:

sudo emacs /etc/fstab
(user)password:

would allow a normal user to edit system configs when required.

either way means you can perform simple tasks without having to log in/out etc.

p.s it's worth noting that some programs are only included in the root path, like fdisk on my system in which case you need

su -

not just

su

this will make you inherit roots paths too.

Last edited by ethics; 07-19-2005 at 04:24 AM.
 
Old 07-19-2005, 04:27 AM   #5
Michael Johnson
Member
 
Registered: Jul 2005
Location: Wagga Wagga, Australia
Posts: 262

Rep: Reputation: 30
That is true. BUT if he is normally logged in as the user with sudo priviledges this will give anyone using the system root access albeit for 1 command at a time. This to me is not as secure as using su which is what I prefer.
 
Old 07-19-2005, 04:51 AM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Yup, you're right, although from the sudoers file you can add specific commands the user can run with sudo, limiting all others.

Not to mention the person would still need his password to execute via sudo, which no-one else should really have, and if they do surely you trust them not to go screwing with your system
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto login gk_ Slackware 9 09-30-2004 04:45 PM
auto-login dexwest Fedora 2 07-08-2004 04:19 AM
Auto Login mtb Linux - Software 2 01-12-2004 07:03 AM
Auto-login and auto-restart... TankerKevo Red Hat 2 10-04-2003 07:52 AM
auto login hk342us Linux - General 11 11-07-2002 04:31 AM


All times are GMT -5. The time now is 04:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration