LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Samba - If I use @valid users, only root can log in (https://www.linuxquestions.org/questions/linux-general-1/samba-if-i-use-%40valid-users-only-root-can-log-in-432856/)

essdeeay 04-07-2006 07:58 PM

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 :)

jschiwal 04-07-2006 08:24 PM

Is @users an NIS netgroup? Was samba compiled with net group support?

essdeeay 04-08-2006 08:54 AM

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 :)

gmcmaster 04-08-2006 09:01 AM

Have you specifically added your username to the smbpasswd database?

essdeeay 04-08-2006 09:07 AM

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 :)

jschiwal 04-10-2006 01:04 PM

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


jschiwal 04-10-2006 01:05 PM

sorry. double posted originally.


All times are GMT -5. The time now is 11:03 PM.