Tőlem kérdezték, nem tudom kipróbálni.

Fórumok

Tőlem kérdezték, nem tudom kipróbálni.

Hozzászólások

Eleve ki sem tudom adni a mount parancsot userként, mert ez a válasz:
"only root can do that"

Hol lehet beállítani egyáltalán, hogy milyen parancsokat adhat ki egy user?

[quote:fbb755240d="csuhas"]Eleve ki sem tudom adni a mount parancsot userként, mert ez a válasz:
"only root can do that"

Mert alapvetően csak a root csatolhat fel ill. le filerendszereket

Ilyesféle sort írj be az /etc/fstab file-ba:
[code:1:fbb755240d]
/dev/valami /mnt/valahol vfat umask=0,user,iocharset=iso8859-2,codepage=852 0 0
[/code:1:fbb755240d]

mod: És ezután már fogod tudni juzerként is csatolni ill. írni is tudsz rá

Igen, így megy! Köszi!

De, a könyvtár tulajdonosa root, (igaz rwxrwxrwx) és userként nem engedi az umount-ot.

[quote:ab640abcee="csuhas"]Igen, így megy! Köszi!

De, a könyvtár tulajdonosa root, (igaz rwxrwxrwx) és userként nem engedi az umount-ot.

Akkor írd át a user-t users-re az fstab-ban

[quote:55a152103a="snowflake"]
Akkor írd át a user-t users-re az fstab-ban

Sajnos a helyzet változatlan

[quote:434e99ae0d="csuhas"][quote:434e99ae0d="snowflake"]
Akkor írd át a user-t users-re az fstab-ban

Sajnos a helyzet változatlan

Az umask-od hogy áll?

[quote:ff954a7699="snowflake"][code:1:ff954a7699]
/dev/valami /mnt/valahol vfat umask=0,user,iocharset=iso8859-2,codepage=852 0 0
[/code:1:ff954a7699]

Most ezt megtoldottam egy "noauto" résszel és újraindítás után userként felfűztem és láss csodát, már az user a tulaj!
umount is gyönyörűen működik!

Most hogyan lehetne ezt elérni úgy, hogy eleve így induljon a rendszer?

[quote:3b94414454="csuhas"]Most ezt megtoldottam egy "noauto" résszel és újraindítás után userként felfűztem és láss csodát, már az user a tulaj!
umount is gyönyörűen működik!
Most hogyan lehetne ezt elérni úgy, hogy eleve így induljon a rendszer?

[code:1:3b94414454]/etc/rc.d/rc.local:
...
sudo -u <user> mount ...[/code:1:3b94414454]
de biztos van szebb megoldás is:)

Bocsánat!
Az elöbb valamit elgépelhettem, mert valóban, ha "users" van "user" helyett, akkor engadi az umount-ot!

A többi stimmel :)

Köszönöm a segítséget!
Sokat tanultam ma.

Kellemes hétvégét!

Kérdeztek tőlem valamit, de távirányítással nem tudtam megoldani a
dolgot. Van egy FAT32-es vinyó. Ezt szépen föl lehet mountolni. Meg kéne
rajta változtatni a jogosultságokat (chmod). Kiadattam a megfelelő
parancsot:

chmod -R -v ugo+rwx ./valami

Szépen listázza is ki a dolgokat, de a jogosultságok NEM változnak
meg. Tudja valaki, hogy miért? (Slackware 10.2)

A válaszokat előre is köszönöm.

FAT32 nem kezel jogosultsagokat egyreszt, masreszt meg amugy is a mount parancs parameterezesevel tudnal jogokat valtoztati rajta, hogy pl milyen user neveben legyen felmountolva, vagy irhato legyen e user szamara stb.

ez ilyen ACL supportos FAT? :)

imo 2 lehetoseged van:
- ha az egeszet ugo+rwx akarod latni: csatold fel ugy
- ha csak ./valamit-t: valassz mas fajrendszert

[quote:300a342ae5="dragi"]FAT32 nem kezel jogosultsagokat egyreszt, masreszt meg amugy is a mount parancs parameterezesevel tudnal jogokat valtoztati rajta, hogy pl milyen user neveben legyen felmountolva, vagy irhato legyen e user szamara stb.

Hogyan paraméterezem a mount-ot, hogy "valamilyen user nevében
legyen fölmountolva"?

[quote:8cc9676948="man mount"]
Mount options for fat
(Note: fat is not a separate filesystem,
but a common part of the msdos, umsdos and vfat filesystems.)
...
...
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.
....
...

[quote:fe73a59802="meditor"]Hogyan paraméterezem a mount-ot, hogy "valamilyen user nevében
legyen fölmountolva"?

[quote:fe73a59802="'man mount'"]
Mount options for fat
(Note: fat is not a separate filesystem, but a common part of the
msdos, umsdos and vfat filesystems.)

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.

sys_immutable, showexec, dots, nodots, dotsOK=[yes|no]
Various misguided attempts to force Unix or DOS conventions onto
a FAT file system.

azaz: mount -t vfat -o uid=1234,gid=1234 /dev/valami /mnt/valahol

snq, ez most ennyire szinkronban sikerült, vagy heisenbugot fogtunk a portál-motorban :) ?

[quote:f3a878ddb2="snq-"]ez ilyen ACL supportos FAT? :)

imo 2 lehetoseged van:
- ha az egeszet ugo+rwx akarod latni: csatold fel ugy
- ha csak ./valamit-t: valassz mas fajrendszert

Erre gondolsz?

mount -t vfat -o umask=0777 /dev/device /mnt/directory

Ez annyira szinkron volt, hogy 3 tettük be ugyanazt!! (-::
Remélem az eredeti kérdező olvasgatja a diszkurzust!!

[quote:17a9e23e76="gsimon"]snq, ez most ennyire szinkronban sikerült, vagy heisenbugot fogtunk a portál-motorban :) ?

mount irta xss bug:)

További kérdés: a user hogyan mountol?

[quote:18b62c5924="meditor"]További kérdés: a user hogyan mountol?

Az fstab-ban a 'user' v. 'users' kulcsszót kell megadni, onnantól tudni fogja.
man mount modja:
(iii) Normally, only the superuser can mount file systems. However,
when fstab contains the user option on a line, anybody can mount the
corresponding system.

Thus, given a line
/dev/cdrom /cd iso9660 ro,user,noauto,unhide
any user can mount the iso9660 file system found on his CDROM using the
command
mount /dev/cdrom
or
mount /cd
For more details, see fstab(5). Only the user that mounted a filesys-
tem can unmount it again. If any user should be able to unmount, then
use users instead of user in the fstab line.

[quote:0705754d80="gsimon"][quote:0705754d80="meditor"]További kérdés: a user hogyan mountol?

Az fstab-ban a 'user' v. 'users' kulcsszót kell megadni, onnantól tudni fogja.
man mount modja:
(iii) Normally, only the superuser can mount file systems. However,
when fstab contains the user option on a line, anybody can mount the
corresponding system.

Thus, given a line
/dev/cdrom /cd iso9660 ro,user,noauto,unhide
any user can mount the iso9660 file system found on his CDROM using the
command
mount /dev/cdrom
or
mount /cd
For more details, see fstab(5). Only the user that mounted a filesys-
tem can unmount it again. If any user should be able to unmount, then
use users instead of user in the fstab line.

Kössz, világos: tehát ha a user is mountolni akar, azt az fstab-ban kell
megadni! Laci! olvasgatod, amit itt beszélgetünk (-::

Laci, a user mountnál ez a lényeg:

fstab-ba:


/dev/cdrom /cd iso9660 ro,user,noauto,unhide

any user can mount the iso9660 file system found on his CDROM using the
command


mount /dev/cdrom

Persze nálad mások az eszközök és máshova mountolsz.

[quote:99d9317187="meditor"]

Kössz, világos: tehát ha a user is mountolni akar, azt az fstab-ban kell
megadni! Laci! olvasgatod, amit itt beszélgetünk (-::

Igen, olvasgatom és most megpróbálom a megoldásokat.
Egy kis türelmet és mondom a fejleményeket.

Addig is nagyon köszönöm mindenkinek a segítséget!

Tehát,

mount -t vfat -o umask=0777 /dev/device /mnt/directory
vagy
mount -t vfat -o uid=1234,gid=1234 /dev/valami /mnt/valahol

után minden változatlan marad, nincs hatással rá.
root-ként adtam ki és maradt a root chmod 755.