[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: prawa dostepu do pamieci usb



strug napisał(a):

po, zakonczonych zepsuciem systemu, eksperymentach z sid'em zainstalowalem etch'a i natrafilem na problem prawdopodobnie prosty, ale jakos nie potrafie sam znalezc jego rozwiazania

dysk usb (odtwarzacz mp3, ale dziala jak pendrive zwykly) montuje sobie bez probemu za pomoca linijki w fstab:

/dev/sda        /media/usb0     vfat    rw,user,noauto  0       0

nie moge sobie jednak sprawic by zwykly user mogl miec mozliwosc zapisu na tym dysku.
sadzilem ze "rw,user" zalatwia sprawe, ale widac zle myslalem.
katalog /mdeia/usb0 zmiania swoje uprawnienia w momencie montowania na 755 wlasciwielem plikow na urzadzeniu jest root i zmiana tego stanu rzczy jest poprzez chown niemozliwa.

opcja user nie powoduje że zwykły user ma prawa do zapisu

*user*
   Allow an ordinary user to mount the file system. The name of the
   mounting user is written to mtab so that he can unmount the file
   system again. This option implies the options *noexec*, *nosuid*,
   and *nodev* (unless overridden by subsequent options, as in the
   option line *user,exec,dev,suid*).

Abyś mógł zapisywać dane na pamięci USB musisz dodać odpowiednie opcje do fstaba. Sam wybierz co Ci najbardziej pasuje:

*uid=*/value/ and *gid=*/value/
   Set the owner and group of all files. (Default: the uid and gid of
the current process.) *umask=*/value/
   Set the umask (the bitmask of the permissions that are *not*
   present). The default is the umask of the current process. The value
is given in octal. *dmask=*/value/
   Set the umask applied to directories only. The default is the umask
of the current process. The value is given in octal. *fmask=*/value/
   Set the umask applied to regular files only. The default is the
   umask of the current process. The value is given in octal.

Pozdrawiam
--
Tomek Piękoś




Reply to: