LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2004, 01:07 AM   #16
octino
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Original Poster
Rep: Reputation: 0

problem solved

eventually i tried to reinstall the mandrake all over again, yet i found this option "upgrade to mandrake 9.2" when i boot from mandrake cd. after i clicked that options & upgrade it, it became all normal again, other users can logon again.

But i'm still wondering what's the problem?
Any comments on it, guys?

And, one very simple questions to u guys, yet very difficult for me, what's the different for setting the samba as PDC (primary domain controller) & leave the samba as the normal workgroup only?

thank's a lot for all the time & help from you guys.
 
Old 06-28-2004, 11:08 AM   #17
arjanr
LQ Newbie
 
Registered: Jun 2004
Location: Kuala Lumpur, Malaysia
Distribution: Red Hat/Fedora
Posts: 1

Rep: Reputation: 0
I have exactly the same problem as octino, except I'm running Fedora core 1.
It started with a similar problem: I couldn't login as any user except root. If I tried to logon with another user I got a message saying the system was going down for maintenance and an error message saying incorrect login. I searched on google for this problem and found out it was because the file /etc/nologin existed. Once I deleted that file I could login again as a normal user. So problem solved, everything working again!

But when I started my linux again today (I'm running it in Microsoft Virtual PC), again I could not login as any user, but this time the error message was: No directory /home/<username>! This was displayed after my motd.
If I login as root and do a su - <username> I get a message saying 'could not open session'

As far as I can remember I didn't change anything, I just shutdown the Virtual PC and next time I started it, this problem came up.

I searched again on google, and found a few users with the same problem, but no solutions. I've checked the following things:
- permissions on /home/<username> are all correct
- permissions on /home are correct
- permissions on /etc/passwd and /etc/shadow are correct
Code:
[root@fedora home]# ls -la                                    
total 20                                                      
drwxr-xr-x    5 root     root         4096 Jun 28 14:14 .     
drw-------   20 root     root         4096 Jun 28 13:49 ..    
drwxr-xr-x    2 arjan    arjan        4096 Mar 10 13:01 arjan 
drwx------    2 test     test         4096 Jun 18 12:53 test  
drwx------    2 test2    test2        4096 Jun 28 14:14 test2
I changed the permissions on 'arjan' to 755 just to see if that would help, but it didn't. I created a new user with 'adduser test2' and 'passwd test2', but same result, the user can not login.
Code:
[root@fedora etc]# ls -la passwd shadow                        
-rw-r--r--    1 root     root         1528 Jun 28 14:14 passwd 
-r--------    1 root     root         1064 Jun 28 15:38 shadow
Permissions for passwd and shadow are all standard.
Code:
arjan:x:500:500::/home/arjan:/bin/bash                         
test:x:501:501::/home/test:/bin/bash                           
test2:x:502:502::/home/test2:/bin/bash
Nothing seems wrong with the entries in passwd...

This is what I see in /var/log/messages when I try to login as a user:
Code:
Jun 28 15:41:12 fedora login(pam_unix)[5146]: session opened for user arjan by 
OGIN(uid=0)                                                                    
Jun 28 15:41:13 fedora  -- arjan[5146]: LOGIN ON tty2 BY arjan                 
Jun 28 15:41:13 fedora login(pam_unix)[5146]: session closed for user arjan
I'm running in runlevel 3, so console only, I don't have X installed.

I'm relatively new to Linux, but this looks like some setting is wrong somewhere... could have something to do with pam? I hope there are some experts here who can solve this weird problem
 
Old 06-28-2004, 09:34 PM   #18
octino
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Original Poster
Rep: Reputation: 0
hi arjanr.

yeah, exactly the same as urs...

the problem just somehow pops out without me changing anything & the things that u pasted are more or less the same as what i have on my mandrake.

i'm new to linux too, that's why i can't get anything done with it, yet i just tried my luck to reinstall it, while i found another new options which is "upgrade", so i used it & it's all back to normal again.

that's all what i did.

any expert here can share their experiences with me & arjanr?
 
Old 11-07-2004, 09:18 PM   #19
octino
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Samba User Privileges Problem

hi guys,

now i'm facing another new problem.

1. i created a user on my mandrake by using the GUI (wizard) interface with the home directory (created on my own, not the default home directory).
2. setting all the user privileges of that particular user (called as user TK) to access all of the folders needed (eg: A - Z), included group settings & etc.
3. created the user on samba, "smbpasswd -a tk" & done successfully.

the problem comes, with the users & its privileges setup successfully, but only part of the folders that he has access into, but the rest of the folders, he can't access. (eg: A - G, he can access ~ but H - Z, he can't).

anybody here encountered this problem before?

thank's...
 
Old 11-07-2004, 11:52 PM   #20
gaviidae
Member
 
Registered: Jun 2004
Location: West Michigan
Distribution: limping along with MD10, Knoppix3.6 : )
Posts: 62

Rep: Reputation: 15
I have re-installed Mandrake 10 several times. Almost all times I used the text mode of install, and elected to select the packages I wanted to have installed. Once, somehow, I got a read-only file system. That means I could not startx, because write authority was gone. One other time, I could not use any of my users. It did say there were no home directories... but I couldn't create them, even as root, because somehow it was a read-only file system. Weird. I tried reinstalling the dummy way, with KDE default and emacs and all that other BS it defaults to. Now I can log in as a user, but cannot initiate X server due to the fact that it's looking in the wrong place for the X init file. I haven't bothered to fix this, but I wonder if all the installs screwed with the machine's hardware. Every time I went to a new type of linux, I just installed over the old, because I didn't want multiple OSes.
So this has happened to me with Mandrake 10, so it's not something that only older Mandrakes have.
 
  


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
Unable to Login to XSession with non root users freedo5 Red Hat 6 01-12-2007 03:34 AM
gui login failed despite users created. but Text mode + root + startx works OK Emmanuel_uk VectorLinux 2 11-21-2005 04:41 PM
RHEL3 Mounting USB after reboot and between reboots: root and non-root users Luis Nunes Linux - Hardware 0 07-20-2005 09:32 AM
I can not login to any local users accounts, except root. jbirtwell Linux - General 7 08-25-2003 04:33 PM
Users other than root cannot login? cyberswami Linux - Newbie 8 07-07-2003 09:21 PM


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