Results 1 to 6 of 6
Hi all.
I am running Federa 8. I have samba users on my network and have samba folders created. I have created the following in the smb.conf file.
[usr]
comment ...
- 09-19-2011 #1Just Joined!
- Join Date
- Aug 2011
- Posts
- 39
Cant create a folder in samba folder due to pemission
Hi all.
I am running Federa 8. I have samba users on my network and have samba folders created. I have created the following in the smb.conf file.
[usr]
comment = users
path = / usr
security mask=0770
create director=0770
create mask=0755
writtable = yes
browsable = yes
My problem is, i cannot create a new folder in this usr folder, it says access denied. My persmission looks like this
drwxrwsrwx root root usr
Why cant samba users write to this folder. I want all the samba users to write to this folder.
Please help?
- 09-20-2011 #2
- 09-20-2011 #3Just Joined!
- Join Date
- May 2011
- Location
- Malaysia
- Posts
- 39
Hi,
I'm just curious why would you want your users to write in /usr? Isn't it root owend?
- 09-20-2011 #4Just Joined!
- Join Date
- Aug 2011
- Posts
- 39
in the etc/samba/smbuser file there is currently only two users, root and administrator
Can I change that smbuser file?
Should I add all the samba users to that file?
- 09-20-2011 #5Just Joined!
- Join Date
- Aug 2011
- Posts
- 39
I am actually trying to change usr1 sorry, Wen I try and create a folder in usr1 (shared) it says, i dont not have permissions to do that. Why?
smb.conf is perfectly configured
usr1/ has 755 permissions on it.
Im not sure about the group/ owner of my samba users and that were my problem is.
Help
- 09-20-2011 #6Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
you have "writtable" in your smb.conf, is that a typo? It should be "writable"...
there is also a space in your path, "/ usr" - there should be no space, also as someone mentioned, you're not *really* sharing /usr, right?
There are other ways to do this, but I would also explicitly add a 'valid users = ' line to your usr share, containing the name of a samba user you've set up, e.g.:
Then in your defined user share, you'd have something like:Code:smbpasswd -a YourSmbUser
If you're using user auth, then I believe the samba user has to exist as a system user, too (i.e., in /etc/passwd).Code:[usr] comment = whatever path = wherever writable = yes valid users = YourSmbUser
EDIT: and chown the /usr1 or whatever directory to be owned by the YourSmbUser user/group.


Reply With Quote
