Tema: Re: Patarimo del macOS ir failu bendrinimo
Autorius: Grzegorz Brze^Hęczyszczykiewicz
Data: 2017-11-22 20:49:39
2017-11-22 19:33, Silencer rašė:
> SMB, tai Samba? :)

taip. Bet Samba yra ir CIFS, ne tik SMB.
;)

> 
> Dariau kaip cia -
> http://www.chriswrites.com/how-to-share-files-folders-between-the-mac-and-pc/
> 
> 
> Ten raso:
> You can solve this dilemma by changing the file permissions on any
> folders you’ve shared (look in the Sharing & Permissions section for the
> folder after doing a Get Info). Here, you can add the appropriate
> permissions for your main Mac account, and apply those permission to all
> sub-folders and files. Unfortunately, there doesn’t seem to be an easy
> way to set the default to read and write for all files copied from the
> PC, so you may need to edit the access rights / permissions regularly,
> or just create an Automator script to do it periodically. Alternatively,
> if you set your main PC login and user name to be exactly the same as
> your main Mac account, there may not be any permissions issues. Oh, the
> joys of sharing files!!!
> 
> Tai kaip suprantu su keliais naudotojais nieko neiseis?

giliai po OS X gyvena UNIX su savo UGO (*rwxrwxrwx) priėjimo teisėm.

idėja tokia:

* įdedi reikiamus juzerius į norimą UNIX grupę - tą pačią, kuroje yra
dabartinis juzeris. Hint - /etc/passswd, /etc/groups;

* /etc/samba/smb.conf reikiama šarui pridedi 'create mask = 664' ir
'directory mask = 755' , kas tampa '-rw-rw-r--' failams ir '-rwxrwxr-x'
katalogams (UNIX į katalogą galima patekti tik tuomet, kai turi rašymo į
jį teisę)

https://www.samba.org/samba/docs/using_samba/ch08.html

Įrašytą failą galės skaityti ir trinti jo sąvininkas ir grupė (66-), o
skaityti - kiti (--4). Į sukurtą katalogą galės patekti ir jį trinti jo
savininkas (7--), o patekti - grupė ir kiti (-55)

Gal yra ir GUI variantas šiam titaniškam darbui atlikti.
-- 
Brzęczyszczykiewics^Hz