Lenovo ThinkCentre Edge 62z 2118-K8G
Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
mojeID OpenID
Pokročilé vyhledávání  

Novinky:

Děkujeme všem návštěvníkům fóra, kteří ochotně radí ostatním. Vaše práce je velmi potřebná a vážíme si jí.

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

Uran

  • Člen
  • **
  • Karma: +7/-1
  • Příspěvků: 312
    • Zobrazit profil
pripojeni sitoveho disku - pravo zapisu [vyřešeno]
« kdy: 06 Červen 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 Červen 2012, 12:06:00 od Martin - ViPEr*CZ* »
IP zaznamenána
"Pouze text v MS Wordu je opravdu čistý, příteli."

jmp

  • Závislák
  • ****
  • Karma: +130/-19
  • Příspěvků: 1601
    • Zobrazit profil
Re:pripojeni sitoveho disku - pravo zapisu
« Odpověď #1 kdy: 06 Červen 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.
IP zaznamenána

Uran

  • Člen
  • **
  • Karma: +7/-1
  • Příspěvků: 312
    • Zobrazit profil
Re:pripojeni sitoveho disku - pravo zapisu
« Odpověď #2 kdy: 06 Červen 2012, 12:04:40 »

Ok. Dekuji. Vyreseno. Jsem nejak puvodne nepobral v jakem formatu se zadava uid a gid.
IP zaznamenána
"Pouze text v MS Wordu je opravdu čistý, příteli."