Quote:
Originally Posted by jschiwal
Tdbsam is a password backend database that is used instead of the flat text file, smbpasswd. You are storing the account info in smbpasswd but samba is looking in the database file for that info
Use the "smbpasswd" program to add a user and enter the password into the /etc/samba/smbpasswd file.
sudo smbpasswd -a vega2k
New SMB password:
Retype new SMB password:
Added user vega2k.
|
Think I got it. I will make some changes now and see if I get it working will post soon again after some testing. ^^
Update:
It's working then I change the .conf file to this and used smbpasswd.
Now I got another 3 question about samba.
1. I share a full harddrive and on it I have the folder lost+found, is there someway to hide this folder so it can't been seen?
2. And cane I set premisson so they can write to all folders that I share exept lost+found?
3. Then I look at the share disk from windows it say it's only 7.3 GB big but it's really 200 GB big and if I so
"df -la" it's also say that the drive is 200 GB.
Code:
[global]
# General server settings
netbios name = server
server string =
workgroup = homenetwork.com
wins support = yes
dns proxy = no
panic action = /usr/share/samba/panic-action %d
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 1
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
invalid users = root
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *passwd:*password\supdated\ssuccessfully$
socket options = TCP_NODELAY
[shared]
comment = winshare
path = /samba/
public = yes
writable = yes
public = yes
valid users = vega2k
create mask = 0744
directory mask = 0755
admin users = admin
force user = nobody
force group = nogroup