Portál AbcLinuxu, 31. srpna 2025 11:18
Mam siet, kde mam na 10 WinXP pocitacoch uzivatela "student", kazdy ma vsak ine heslo (zhodne s nazvom pocitaca!). Cez Sambu pristupovali na zdielany adresar \\server\shared, kde mohli citat aj zapisovat bez zadavania akychkolvek hesiel, s pravami hostovskeho konta.
Teraz vsak potrebujem vytvorit aj zdielany adresar "ucitel", kam moze zapisovat len uzivatel "ucitel" a vsetci studenti maju len pravo citat.
Ako je to mozne realizovat pri "security = share"?
Ak to nie je mozne, ako zmenit nastavenia "security = share" na "security = user", aby som nemusel menit nastavenia pre existujuci shared? (t.j. aby pri pripajani nevyskakovalo na uzivatelov "student" okno so ziadostou o meno a heslo) Upozornujem, ze kazdy uzivatel student ma ine heslo a teda "smbpasswd -a student" mi nepomoze.
Nastavenia adresarov:
[global] workgroup = SKOLA security = user guest account = nobody guest ok = yes null passwords = yes encrypt passwords = yes dns proxy = no netbios name = SUN smb passwd file = /etc/samba/smbpasswd log level = 2 server string = SUN hosts allow = 127.0.0. 192.168.1. [Shared] path = /samba/shared public = yes browseable = yes writeable = yes create mode = 0766 guest ok = yes [Ucitel] path = /samba/ucitel write list = ucitel create mask = 0755 directory mask = 0755 guest ok = yes writeable = no
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.