[Samba] Newbie : bad uid in the smbpasswd file ?

Francois Lafont flafdivers at free.fr
Tue Dec 28 04:44:36 MST 2010


Hello everybody,

I don't understand why the uid isn't correct in the /etc/samba/smbpasswd
file. My OS is Ubuntu 10.04. Some precise explanations below:

#-----------------------------------------------
# smbd -V
Version 3.4.7

# testparm -s /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section "[PARTAGE]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
	workgroup = MON-DOMAINE
	netbios name = SAMBA-SRV
	server string = ""
	map to guest = Bad User
	passdb backend = smbpasswd
	guest account = francois
	lanman auth = Yes
	log level = 1
	max log size = 10
	wins support = Yes

[PARTAGE]
	comment = Pour faire des tests
	path = /resteDisque1/dossier
	read only = No
	guest ok = Yes

# service smbd restart
smbd start/running, process 6638

# service nmbd restart
nmbd start/running, process 6650

# cat /etc/samba/smbpasswd # no output, the file is empty

# pdbedit -L # no result, no samba user

# smbpasswd -a francois # I create the user francois
New SMB password:
Retype new SMB password:
Added user francois.

# cat /etc/samba/smbpasswd # In this file, the uid is 0, like root ?!
francois:0:96E3B942381CBE5BAAD3B435B51404EE:BBB4013EC9D4E3D7A88CA89C2519DB11:[U
         ]:LCT-4D116896:

# pdbedit -L # With this command, the uid is 1000 ?!
francois:1000:francois

# cat /etc/passwd | grep francois # 1000 is the *real* uid of francois
francois:x:1000:1000:francois,,,:/home/francois:/bin/bash

#-----------------------------------------------

The real uid of francois is 1000. Why is the uid equal to 0 in the
smbpasswd file ?

Thanks in advance for your help.

-- 
Francois Lafont



More information about the samba mailing list