You are not logged in.

#1 2010-09-13 00:11:24

XtrmGmr99
Member
Registered: 2009-04-14
Posts: 128

Can't mount CIFS correctly...

Hello,

I'm trying to mount my Samba share automatically via fstab. It works, however, there seems to be permission problems. I can create directories, but I cannot create files inside those directories. This is my smb.conf (relevent parts only):

# Security mode. Defines in which mode Samba will operate. Possible
# values are share, user, server, domain and ads. Most people will want
# user level security. See the Samba-HOWTO-Collection for details.
   security = share

[public]
        path = /storage/public
        read only = No
        create mask = 0777
        directory mask = 0777
        guest ok = Yes

As you can see, it's supposed to be a guest share that anyone on the network can access and modify. However, no matter what kind of mount options I use I can never create files in directories...

Thanks for any help.

Offline

#2 2010-09-14 21:36:17

XtrmGmr99
Member
Registered: 2009-04-14
Posts: 128

Re: Can't mount CIFS correctly...

Still can't get it to work...

Perhaps I should switch to an sftp mount...

Offline

#3 2010-09-14 21:52:05

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: Can't mount CIFS correctly...

Perhaps the permissions on your filesystem are wrong, not the ones from samba.
Try force user = <the user that owns the directory which is shared>
example:

[files]
   comment = chris
   path = /home/chris/files
   public = yes
   writable = yes
   printable = no
   create mask = 0777
   force user = chris

฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

Board footer

Powered by FluxBB