Hi all,
I experience some strange inherit access issue on my samba setup and i could use some fresh eye's on it. For a few day's i have been searching for possible solutions however so far no luck.
situation:
i have my mounts declared in fstab, and they mount correctly. Also the user verification seams to work ok.
however when i open the mount in Nautilis browser all files have a lock-icon in front.
in the root of the share i can create and delete files and folders, However if i create a folder i'm not able to put a file or another folder in there and it will display a error about permissions.
Though as root (sudo or su), i do not have a issue and are able to create the needed directory structure without problem. and copy\delete all files & folders i want.
i tried all kind of setup's including but not limiting to:
smb.conf:
- locking = no
- inherit permissions = yes
- force user = root
- create mask on files and directories = 775
- commenting out all not absolutely needed settings
samba server local file system:
- chmod\chown\chgrp mount folder on host
fstab on remote machine:
- mount under different users
- mount with fmask\dmask
- specifically mount with rw flag
current smb.conf:
Code:
[global]
server string = e3k
interfaces = 10.0.0.0/255.255.255.192
security = user
log file = /opt/var/log/samba/log.%m
max log size = 256
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
load printers = no
local master = no
dns proxy = no
valid users = root, user-2, user-3, user-4
hosts allow = 10.0.0.0/255.255.255.192
[e3k-Backup]
comment = Main storage
path = /mnt
guest ok = no
valid users = root, user-2, user-3, user-4
read list = user-2, user-3, user-4
admin users = root
inherit permissions = yes
read only = no
force user = root
locking = no
fstab Mount:
Code:
//10.0.0.1/e3k-Backup /media/e3k-backup smbfs users,credentials=/etc/samba/credfile.e3k 0 0
credfile:
Code:
username=root
password=somethingvalidandsecret
troubleshooting demonstration:
Code:
kamaradski@Main:/media/e3k-backup$ mkdir test1
kamaradski@Main:/media/e3k-backup$ sudo mkdir test2
kamaradski@Main:/media/e3k-backup$ ls -al
total 4
drwxrwxr-x 5 kamaradski kamaradski 0 Nov 11 2011 .
drwxr-xr-x 13 root root 4096 Nov 11 00:07 ..
drwxrwxr-x 2 root root 0 Nov 9 21:19 lost+found
drwxrwxr-x 2 root root 0 Nov 11 2011 test1
drwxrwxr-x 2 root root 0 Nov 11 2011 test2
kamaradski@Main:/media/e3k-backup$ mkdir test1/test1
mkdir: cannot create directory `test1/test1': Permission denied
kamaradski@Main:/media/e3k-backup$ sudo mkdir test1/test1
kamaradski@Main:/media/e3k-backup$ ls -al test1/
total 0
drwxrwxr-x 3 root root 0 Nov 11 2011 .
drwxrwxr-x 5 kamaradski kamaradski 0 Nov 11 2011 ..
drwxrwxr-x 2 root root 0 Nov 11 2011 test1
Realy hoping anyone knows what is happening here as i'm getting really stuck, and the time-loss on this issue is also getting huge..
At this point any insight is more then welcome, process explanation of whats going on or a straight to the point solution, i need anything just so i can proceed to the next project on my list.
Thanks in advance for your time.
Kamaradski