Portál AbcLinuxu, 5. května 2025 05:06
net use e: \\test\share
pripojim sdileny disk ze serveru (Samba). Z disku je mozne cist, ale neni mozne na sdileny disk zapisovat. Prava adresare na serveru jsem dal i na 777, menil jsem vsemozne vlastnika, ale porad nic.
Aktualni smb.conf:
[global]
workgroup = arbeitsgruppe
netbios name = test
server string = Samba Server %v
log file = /var/log/samba/%m.log
log file = /var/log/samba/log.smbd
max log size = 500
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = no
dns proxy = no
template shell = /bin/false
winbind use default domain = no
guest ok = yes
guest account = nobody
security = share
encrypt passwords = No
[share]
comment = Ohybacka
path = /var/samba/share
writeable = yes
browseable = yes
public = yes
# valid users = liframe
# create mask = 0744
# directory mask = 0755
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes
create mask = 0744
directory mask = 0755
Napada nekoho, co kde jak 'opravit', aby sel i zapis? V principu by zrejme asi nebyl uplne nutny, ale bylo by to lepsi.
Predem diky
Řešení dotazu:
writeable = yes? NN
2010/05/09 16:02:17.220776, 1] smbd/service.c:1069(make_connection_snum)
root (::ffff:172.22.1.244) connect to service tmp initially as user nobody (uid=99, gid=99) (pid 2002)
Kdyz chci vlezt do nejakeho adresare (do ktereho nemam prava) tak se zapise:
2010/05/09 16:02:47.878027, 1] smbd/vfs.c:932(check_reduced_name)
check_reduced_name: couldn't get realpath for mc-root/????????.???
pri pokusu o zapis se nezapise nic.
[share] comment = Ohybacka path = /var/samba/share writeable = yes browseable = yes public = yes # valid users = liframe create mask = 0666 directory mask = 0777
global] workgroup = XXXXXX server string = Samba Server XXXXX Version %v ; netbios name = s1 interfaces = lo eth0 192.168.254.19/32 192.168.155.1/32 hosts allow = 127. 192.168.254. 192.168.155.51 192.168.155.50 # logs split per machine log file = /var/log/samba/log.%m # max 50KB per log file, then rotate max log size = 50 log level = 2 security = user passdb backend = tdbsam lanman auth = yes client lanman auth = yes ; realm = MY_REALM ; password server = < NT-Server-Name > ; domain master = yes ; domain logons = yes # the login script name depends on the machine name ; logon script = %m.bat # the login script name depends on the unix user used ; logon script = %u.bat ; logon path = \\%L\Profiles\%u # disables profiles support by specifing an empty path ; logon path = ; add user script = /usr/sbin/useradd "%u" -n -g users ; add group script = /usr/sbin/groupadd "%g" ; add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u" ; delete user script = /usr/sbin/userdel "%u" ; delete user from group script = /usr/sbin/userdel "%u" "%g" ; delete group script = /usr/sbin/groupdel "%g" ; local master = yes os level = 62 preferred master = yes wins support = yes ; wins server = w.x.y.z ; wins proxy = yes ; dns proxy = yes ; load printers = yes cups options = raw ; printcap name = /etc/printcap #obtain list of printers automatically on SystemV ; printcap name = lpstat ; printing = cups ; map archive = no ; map hidden = no ; map read only = no ; map system = no username map = /etc/samba/smbusers ; store dos attributes = yes #============================ Share Definitions ============================== [XTR400] comment = Sdilena slozka XTR400 path = /var/SambaData/xtr400 writeable = yes create mask = 0666 guest ok = yes
lanman auth = yes client lanman auth = yesUrčitě bych změnil masky na
create mask = 0666 directory mask = 0777
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.