SAMBA -> NT passwd prob

Pagina: 1
Acties:

  • Stealth2000
  • Registratie: December 2000
  • Laatst online: 09-05 23:47
Ik heb samba geinstalled en hij komt wel voor in mijn netwerkomgeving. Mijn smb.conf is dus niks mis mee. (behalve dat ik nog niet weet hoe ik passwdloze shares maak)

Maar nu heb ik het volgende gedaan om met mijn windows bakken op de shares te laten komen:

1. Create a separate password file for Samba based on your /etc/passwd file. This will create Samba users for every user that already exists on your system. To do this by executing the command cat /etc/passwd | mksmbpasswd.sh > /etc/smbpasswd. The script should be in the /usr/bin directory or you can get it here.
2. Make sure only root has permission to read and write to the Samba password file with the command chmod 600 smbpasswd.
3. The script does not copy the passwords. To set the Samba password for each users thus enabling their Samba accounts, use the command smbpasswd username for each user.
4. Edit the smb.conf file to include the two lines
encrypt passwords = yes
smb passwd file = /etc/smbpasswd
5. Restart Samba with /etc/rc.d/init.d/smb restart

maar punt 3 is het probleem waardoor ik nog geen toegang krijg. Als ik als root dat commando uitvoer krijg ik ''bash: /usr/bin/smbpasswd: Toegang geweigerd" :?

Iemand die me een stukje verder kan helpen ?

  • bkor
  • Registratie: November 2000
  • Niet online
Je hebt een smbpasswd config file, maar ook een smbpasswd commando, op welk bestand heb je de chmod 600 gedaan?

Op mijn systeem moet je dus het volgende doen voor het smbpasswd config bestand:
code:
1
chmod 600 /etc/samba/smbpasswd


indien je chmod 600 /usr/bin/smbpasswd hebt gedaan:
code:
1
chmod 755 /usr/bin/smbpasswd

  • Stealth2000
  • Registratie: December 2000
  • Laatst online: 09-05 23:47
bkor schreef op 31 augustus 2002 @ 23:26:
Je hebt een smbpasswd config file, maar ook een smbpasswd commando, op welk bestand heb je de chmod 600 gedaan?

Op mijn systeem moet je dus het volgende doen voor het smbpasswd config bestand:
code:
1
chmod 600 /etc/samba/smbpasswd


indien je chmod 600 /usr/bin/smbpasswd hebt gedaan:
code:
1
chmod 755 /usr/bin/smbpasswd
Thx alot, dat was het inderdaad. :D