Fórum Ubuntu CZ/SK

Ubuntu pro osobní počítače => Software => Příkazový řádek a programování pro GNU/Linux => Téma založeno: Uran 06 Června 2012, 06:43:18

Název: pripojeni sitoveho disku - pravo zapisu [vyřešeno]
Přispěvatel: Uran 06 Června 2012, 06:43:18
V praci pripojuji sitovy disk v domene Windows. Potreboval bych modifikovat nasledujici prikaz tak aby mel na nej pravo zapisu i bezny user. Takhle na nej mohu zapisovat jen pomoci sudo.

Kód: [Vybrat]
sudo mount -t cifs -o iocharset=utf8,username=ping,password=****,workgroup=pong,rw //IP_adresa/data ~/foo
Prikaz pouzivam ve skriptu, kterym synchronizuji sitovy disk na lokalni pocitac.
Název: Re:pripojeni sitoveho disku - pravo zapisu
Přispěvatel: jmp 06 Června 2012, 07:15:36
man mount.cifs

Citace
uid=arg
sets the uid that will own all files or directories on the mounted filesystem when the server does not provide ownership information. It may be specified as either a username or a numeric uid. When not specified, the default is uid 0. The mount.cifs helper must be at version 1.10 or higher to support specifying the uid in non-numeric form. See the section on FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS below for more information.
forceuid
instructs the client to ignore any uid provided by the server for files and directories and to always assign the owner to be the value of the uid= option. See the section on FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS below for more information.

gid=arg
sets the gid that will own all files or directories on the mounted filesystem when the server does not provide ownership information. It may be specified as either a groupname or a numeric gid. When not specified, the default is gid 0. The mount.cifs helper must be at version 1.10 or higher to support specifying the gid in non-numeric form. See the section on FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS below for more information.
forcegid
instructs the client to ignore any gid provided by the server for files and directories and to always assign the owner to be the value of the gid= option. See the section on FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS below for more information.
Název: Re:pripojeni sitoveho disku - pravo zapisu
Přispěvatel: Uran 06 Června 2012, 12:04:40
Ok. Dekuji. Vyreseno. Jsem nejak puvodne nepobral v jakem formatu se zadava uid a gid.