Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: pripojeni sitoveho disku - pravo zapisu [vyřešeno]  (Přečteno 1357 krát)

Uran

  • Aktivní člen
  • *
  • Příspěvků: 341
pripojeni sitoveho disku - pravo zapisu [vyřešeno]
« kdy: 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.
« Poslední změna: 06 Června 2012, 12:06:00 od Martin - ViPEr*CZ* »
"Pouze text v MS Wordu je opravdu čistý, příteli."

jmp

  • Host
Re:pripojeni sitoveho disku - pravo zapisu
« Odpověď #1 kdy: 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.

Uran

  • Aktivní člen
  • *
  • Příspěvků: 341
Re:pripojeni sitoveho disku - pravo zapisu
« Odpověď #2 kdy: 06 Června 2012, 12:04:40 »
Ok. Dekuji. Vyreseno. Jsem nejak puvodne nepobral v jakem formatu se zadava uid a gid.
"Pouze text v MS Wordu je opravdu čistý, příteli."

 

Provoz zaštiťuje spolek OpenAlt.