[Samba] Cannot write over root owned file
Larry Alkoff
labradley at mindspring.com
Tue May 2 22:18:25 GMT 2006
I mount another Linux machine with:
smbmount tillie/all /mnt/tillie -o uid=0
Trying to copy a root owned to file after either su or su -
fails with:
cp: cannot create regular file `/mnt/tillie/usr/local/bin/smbmt':
Permission denied
Since I have root priviledges why does this happen?
The file perms are:
-rwxr--r-- 1 root root 4.6K 2006-05-02 16:58 smbmt
I get the following message on Tillie in /var/log/samba.192.168.0.5
but cannot decypher it:
[2006/05/02 17:10:37, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
I see nothing in tillie's smb.conf to prevent root access.
Is there something built-in to Samba to prevent root overwriting a file?
This is tillie's smb.conf:
[global]
workgroup = LANET
server string = Samba Server %v on %h
map to guest = Bad User
log level = 4
log file = /var/log/samba.%m
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
hostname lookups = Yes
logon home = \\%h\%u
os level = 65
preferred master = Yes
domain master = Yes
wins proxy = Yes
wins support = Yes
hosts allow = 192.168.0., 127.
[homes]
comment = Home Directories
read only = No
browseable = No
[all]
comment = Entire disk from /
path = /
read only = No
--
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Slackware Linux
More information about the samba
mailing list