LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-07-2006, 07:58 PM   #1
essdeeay
Member
 
Registered: Aug 2004
Location: United Kingdom
Distribution: Gentoo, FC5
Posts: 87

Rep: Reputation: 15
Question Samba - If I use @valid users, only root can log in


Running Samba 3.0.22 / Fedora Core 5

All my Linux users are members of @users. I have used the "valid users = @users" in my smb.conf. But now only root can log in. If I remove the valid_users line from smb.conf, everyone can log in.

Any ideas?

Thanks,
Steve
 
Old 04-07-2006, 08:24 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Is @users an NIS netgroup? Was samba compiled with net group support?
 
Old 04-08-2006, 08:54 AM   #3
essdeeay
Member
 
Registered: Aug 2004
Location: United Kingdom
Distribution: Gentoo, FC5
Posts: 87

Original Poster
Rep: Reputation: 15
Question

Thank you for your reply jschiwal,

I'm running FC5, and Samba was installed as a binary using yum. I tested just using "valid users = sa", where sa is my username, and still - I'm unable to login.

The strange thing is, root can always log in.

When login fails, this gets added to syslog
Code:
Apr  8 14:51:19 fedora smbd[4150]: [2006/04/08 14:51:19, 0] smbd/service.c:make_connection_snum(592)
Apr  8 14:51:19 fedora smbd[4150]:   Can't become connected user!
Any ideas?

Thanks,
Steve
 
Old 04-08-2006, 09:01 AM   #4
gmcmaster
Member
 
Registered: Feb 2003
Location: Poole, Dorset, England
Distribution: Fedora Core 5
Posts: 80

Rep: Reputation: 15
Have you specifically added your username to the smbpasswd database?
 
Old 04-08-2006, 09:07 AM   #5
essdeeay
Member
 
Registered: Aug 2004
Location: United Kingdom
Distribution: Gentoo, FC5
Posts: 87

Original Poster
Rep: Reputation: 15
Thank you for your reply gmcmaster,

/etc/samba/smbpasswd doesn't exist as I'm using tdbsam as my backend. If I do "pdbedit -L", then sa is listed.

And, smbpasswd successfully changes the password which I use to log in, so I assume that's all ok.

Thanks,
Steve
 
Old 04-10-2006, 01:04 PM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
The reason that I asked if @users is an NIS netgroup is because the samba manpage says that usage is for NIS netgroups, not groups in general.
Quote:
Example 4: allow only hosts in NIS netgroup "foonet", but deny access from one particular host

hosts allow = @foonet
 
Old 04-10-2006, 01:05 PM   #7
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
sorry. double posted originally.

Last edited by jschiwal; 04-10-2006 at 01:06 PM.
 
  


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
root users won't log out aubrey-calm2 Linux - Newbie 2 04-08-2006 01:48 AM
root can log in, but not users walterbyrd Debian 7 02-08-2006 06:17 AM
newbie > root can log in to a gui, users suddenly can't Influx Slackware 18 10-09-2005 10:09 AM
Users can't log in unless part of the root group jeffreybluml Linux - Newbie 3 12-02-2004 07:24 PM
non-root users can't log in (RH9) skullmunky Linux - Security 1 11-17-2004 11:41 AM


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

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