LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 09-26-2004, 10:29 PM   #1
TastyWheat
Member
 
Registered: Aug 2003
Location: Texas
Distribution: Knoppix 5.0.1, Fedora Core 5
Posts: 66

Rep: Reputation: 15
Question Logging in as non-privileged user


I know it isn't possible to just login as one, but is there a simple way to switch a non-privileged user to a privileged user? I want to be able to take an account like httpd or mysql or nobody and be able to login under that account. Don't tell me that it's a bad idea or whatever, this is somewhat hypothetical and I normally wouldn't do this. I want this to be done with making minimal changes to the passwd and shadow files. So setting the default shell, home directory, and password should be avoided if possible.
 
Old 09-27-2004, 12:39 AM   #2
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
The reason you can't log in as one of those users is that they don't have a password set (well, they have an invalid password field), so you will have to set a password if you want to be able to log in at a login prompt. The other way you can impersonate a user like this is just to su from root.
 
Old 09-27-2004, 01:58 AM   #3
TastyWheat
Member
 
Registered: Aug 2003
Location: Texas
Distribution: Knoppix 5.0.1, Fedora Core 5
Posts: 66

Original Poster
Rep: Reputation: 15
In my distribution of linux (Red Hat 9) the only way you can login as a certain user is if thier login shell is NOT set to /sbin/nologin. Even if it is left blank then you can login or su to that user.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No echo for user id when logging in LORDL Linux - General 1 07-28-2005 12:21 PM
Failed to use X as non-privileged user on AS 3.0 EStester Linux - Enterprise 0 02-28-2005 03:57 PM
Non-privileged user account needed.... AzuuAz Linux - Security 1 11-26-2004 04:06 AM
Logging On As Root User BACTRATE Mandriva 6 02-16-2004 10:48 AM
user logging problem brijesh Linux - General 1 07-10-2003 10:36 AM


All times are GMT -5. The time now is 08:56 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