-   Linux - Newbie (
-   -   Root login but no user login on samba (

Cybercool 04-07-2004 02:56 AM

Root login but no user login on samba
I got a weard problem with logging in with a win2k machine to a Debian samba server.
I can login as root, but I can't loggin as other users.
When I log in as a other user, it go's by the login field.
Then it loads a little bit, and then it stops.
And I got the blue (background) screen from windows, and now startmenu and now icons on the desktop, notting!!!

Does anyone know this problem??

My samba config:

 #null passwords = yes
 log file = /var/log/samba/log.%m
 loglevel = 2
 #debug timestamp = yes
 #bind interfaces only = yes
 #max log size = 250
 domain master = yes
 local master = yes
 locking = yes
 domain logons = yes
 preferred master = yes
 encrypt passwords = true
 #automatische computer account
 add user script = /usr/sbin/useradd -g machines -c NTMachine -d /dev/null -s /bin/false %m$
 delete user script = /usr/sbin/userdel %m$
 logon path = \\microcartero\profile\%U
 serverstring = Samba on %L
 #socket address = 192.168.
 hosts allow = 192.168. localhost
 workgroup = cattie
 smb passwd file = /etc/samba/smbpasswd
 logonscript = login.bat
 read raw = yes
 write raw = yes
 netbios name = microcartero
 load printers = no
 security = domain
 os level = 99
 #oplocks = True
 #deadtime = 1
 #lock directory = /tmp/samba

 allow hosts = 192.168.
 comment = The microcartero login service
 path = /samba/scripts
 browseable = no
 comment = User profile
 path = /samba/profile
 read only = no
 create mode = 0600
 force create mode = 0600
 directory mask = 0777
 force directory mode = 0777

 comment = Data share
 path = /share/data
 create mode = 0775
 writeable = yes
 public = yes
 directory mode = 0775

 comment = Programs share
 path = /share/programs
 create mode = 0775
 writeable = yes
 public = yes
 directory mode = 0775

 comment = Home %U
 path = /home/%U
 create mode = 0775
 directory mode = 0775
 writeable = yes
 directory mode = 0775

 comment = Root directory
 path = /
 writable = yes
 valid users = root
 admin users = root
 create mode = 0774
 directory mode = 0775
 public = no
 write list = root
 force user = root

I hope someone can help!!!


scott_R 04-07-2004 03:35 AM

I don't know about the screen color problem, but have you set up your samba users? (Different from your Linux users, you need to use 'smbpasswd' to set them up.)

Cybercool 04-07-2004 03:41 AM

Let me explain it better:

I don't have a screen collor problem.

This is the story:

I have a debian/samba file server with the config file showed in the first post.

When I log in as root on the windows client (that belong to the domain) nothing is wrong.
I can login and see my drives.

But when I want to login with an other normal user, the computer (windows client) doesn't startup.
It just stops with starting. And I can do notting.

Do you understand??

The user is in smbpasswd and enabled!!!

So, does anyone know what can be wrong??

p.s. I hope I explained it better this way???

figure002 07-13-2011 05:36 AM

I was having the same problem. I have some samba shares on an Ubuntu 10.10 system. When I try to access a share from a Windows XP client, it asks for a username and password. I could login as user "root" or "guest", but not with my own user name, though I *did* create a samba password for myself (with `smbpasswd') in the past.

But I decided to create a samba password again, just to be sure,


sudo smbpasswd -a USERNAME
I entered the same password like I did before. And voilą, I was able to login with my own username again. Apparently my samba password somehow got deleted, but how this happened is a mystery; I never upgraded or anything.

All times are GMT -5. The time now is 08:46 PM.