Тысячный вопрос про samba
Форум — Admin
Прошу не бить ногами, гугление не помогло.
Вопрос из разряда WTF: samba 3, есть 2 папки:
root@home:~# ls -l /home
drwxr-xr-x 32 gena gena 4096 2011-12-19 15:32 gena
drwxr-xr-x 3 root root 4096 2011-12-18 13:37 shares
root@home:~# ls -l /media
drwxr-xr-x 4 gena gena 4096 2011-12-19 15:10 backup
Есть конфиг самбы (ниже), с одинаковыми натройками для [gena] и [backup].
Есть машина с Windows 7. С нее есть полный доступ в /home/gena и только на чтение (WTF??) в /media/backup.
Нужно сделать доступ на запись в /media/backup Вопрос к форумчанам, где я туплю при расшаривании последней папки?
Конфиг:
root@home:~# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[allusers]"
Processing section "[gena]"
Processing section "[backup]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
username map = /etc/samba/smbusers
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
[homes]
comment = Home Directories
read only = No
guest ok = Yes
[allusers]
comment = All Users
path = /home/shares/allusers
valid users = gena, root, @users
read only = No
create mask = 0666
directory mask = 0777
guest ok = Yes
[gena]
comment = Home folder
path = /home/gena
valid users = gena, root
force group = gena
read only = No
create mask = 0666
directory mask = 0777
guest ok = Yes
[backup]
comment = Backup folder
path = /media/backup
valid users = gena, root
force group = gena
create mask = 0666
directory mask = 0777
guest ok = Yes
Mount:
root@home:~# mount
/dev/sdb1 on / type ext4 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/sda1 on /media/backup type ext4 (rw,noatime,errors=remount-ro,commit=0)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/gena/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=gena)