LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-24-2010, 04:50 PM   #1
davidavid
LQ Newbie
 
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
strange login problems with user despite being root


Hello dear friends of linux

I am neither a newbie nor an expert. I am administering a debian webserver (lenny) and run into a strange problem respectively new behaviour.

I login as root by ssh and want to change to another user so that I could run a program with the privileges and limitations of that user. So I used to do su <username> for this or login <username>. Now I still can do that for all users I tried but one. If I login as user openerp (which successfully starts daemons in the init process) I can authenticate myself if I go with "login openerp" or I get no failure message if I type "su openerp" (as root) but I am still root!

No hints in syslog.

by using login, this is what I get:

root@xxxxx:/var/log# login openerp
Password:
Last login: Sat Jul 24 23:40:31 CEST 2010 from xxxxxxxx on pts/0
Linux xxx.xxx.xx 2.6.33.3-atom32-11052010-1 #2 SMP Tue May 11 11:35:00 UTC 2010 i686

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
No directory, logging in with HOME=/
root@atom018:/var/log#

root@atom018:/var/log# whoami
root

It used to work, i.e. change user to openerp before, same with su openerp.

Any ideas to solve this issues are appreciated.


Sorry, just solved, solution: add /bin/bash instead of /bin/false to /etc/passwd

Last edited by davidavid; 07-24-2010 at 04:56 PM.
 
Old 07-24-2010, 05:40 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by davidavid View Post
I login as root by ssh
Please do not do that as allowing root to log in over the network is a security risk. Instead log in as unprivileged user and start applications as another unprivileged user using Sudo.


Quote:
Originally Posted by davidavid View Post
just solved, solution: add /bin/bash instead of /bin/false to /etc/passwd
Be aware that there may be reasons for the application to require the unprivileged user "openerp" to have an inert shell.
 
  


Reply



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
Strange root login RichM Linux - Security 9 07-07-2006 02:53 PM
Gnome: Cannot login as default user, sends back to login, works as root Danny-T Linux - Newbie 2 05-27-2006 03:44 AM
strange message when i login as a root Whynot Linux - General 6 03-16-2006 05:45 PM
user problems, have to login as root!! desperate_penguin Linux - Software 1 11-26-2005 09:13 AM
strange problem with root login/su schbond Linux - General 6 10-17-2003 09:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:06 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration