LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-06-2009, 12:21 AM   #1
piratas
LQ Newbie
 
Registered: Oct 2007
Posts: 16

Rep: Reputation: 0
only root can login


I built a customized root file system based on Ubuntu 9.04 (built for ARM), then I found that I can only login as root. When login as other user, it shows last login time and then immediately goes back to login prompt.

I guess this is a privilege related issue, but I checked every file and directory i can think of, they all seems have right privileges.

The /var/log/auth.log shows no error, but login session close immediately after it opened.

...
Sep 6 03:48:39 myhost login[1336]: pam_unix(login:session): session opened for user newuser by LOGIN(uid=0)
Sep 6 03:48:39 myhost login[1336]: pam_unix(login:session): session closed for user newuser
...

Any ideas? Thanks.
 
Old 09-06-2009, 01:59 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
does the user's shell exist? what is it?
 
Old 09-06-2009, 02:13 AM   #3
piratas
LQ Newbie
 
Registered: Oct 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for the reply AlucardZero.

I don't think shell has been executed.

The default shell is bash, I put "date > ~/login.txt" in the bottom of .bashrc , but nothing happened.
 
Old 09-06-2009, 08:19 PM   #4
piratas
LQ Newbie
 
Registered: Oct 2007
Posts: 16

Original Poster
Rep: Reputation: 0
BTW, what's the procedure of login?
 
Old 09-08-2009, 05:19 AM   #5
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,286

Rep: Reputation: 62
Ok you have a customized version, did you add any user to the new root filesystem? if you did, did you do it by the command line or a graphical program. If you did it by the command line, you may have not added the default login shell, or home directory for that user

There may also be some of the programs that are required for a user to login which may not be installed. check and make sure you have files /etc/passwd /etc/shadow /etc/group.

It may also be a permission problem, make sure that the users home directory exists, and is read/write/executable by the user. If no home directory is given, it will default to / (root), and since this is only accessable by root, it may force you back to the console and not login.
 
Old 09-09-2009, 10:26 PM   #6
piratas
LQ Newbie
 
Registered: Oct 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for all you guys.
The issue turned out to be a kernel specific problem.

This is clipped from http://sheeva.with-linux.com/sheeva/README-2.6.30.5.

####### change vm security settings
# Due to changes in vm security a change must be made in /etc/sysctl.d/10-process-security.conf.
# vm.mmap_min_addr should be set to 32768 (This change is safe for any kernel version).
# If this is not done it is likely that you will not be able to login remotely.
# Although you should still be able to login as root on the main console.

Changing vm.mmap_min_addr to 32768 fixed my problem.

Thanks to cbxbiker61, who pointed this out.
 
Old 09-09-2009, 11:55 PM   #7
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Thanks for the feedback. I'm sure it will be highly appreciated by other people who run into the same problem in future.

I suggest that you mark your thread as solved using the thread tools just above the opening post.
 
  


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
Adding root privaliges to user accounts or auto login as root Val-Ent Linux - General 15 03-02-2010 05:27 PM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 09:28 AM
Gnome: Cannot login as default user, sends back to login, works as root Danny-T Linux - Newbie 2 05-27-2006 04:44 AM
I have re-installed MK 9.2 but cannot login as user, login as root works. bobinglis Mandriva 2 02-22-2004 12:39 PM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-06-2004 12:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration