1826414 Members
4253 Online
109692 Solutions
New Discussion

Re: samba

 
SOLVED
Go to solution
p7
Frequent Advisor

samba

hi all

i have a samba share that the user copies new data to every week. the problem is once in while windows says cant cp or mv because file being used. is there a way (other than shutting samba down) to keep the users off, but samba up so they can do their cp and pastes?

thx in advance
2 REPLIES 2
Steven Schweda
Honored Contributor

Re: samba

Try using fuser or lsof (on the HP-UX system)
to learn who is using the busy file? (Or
will that just say Samba?)
eric roseme
Respected Contributor
Solution

Re: samba

do a /opt/samba/bin/smbstatus and see who has the file locked (assuming it is another Samba user). If you want to have users overwrite each other's files, then just disable locking - "/opt/samba/bin/testparm - v -s | grep lock" and then go to smb.conf and turn off the locking parms. Keep in mind that Samba is doing exactly what it is supposed to - protecting your users from overwriting each other by locking the files.

If you want to lock out users from the share, use the "valid users" option on the share definition in smb.conf. If you want to specify read-only for some users, set the file permissions.

Eric