View previous topic :: View next topic |
Author |
Message |
Macrobiotus Apprentice
Joined: 06 Oct 2002 Posts: 230
|
Posted: Sat Apr 26, 2008 8:18 am Post subject: Schreibrechte bei vfat |
|
|
Hi zusammen! Es ist mir etwas peinlich, doch stehe ich schon seit längerem auf dem Schlauch:
Meine vfat-Datenpartition wird beim booten gemountet, doch ohne Schreibzugriff.
fstab:
Code: | /dev/sda5 /mnt/sda5 vfat defaults,users,rw 0 0 |
Ich muss immer erst mit sudo die Partition umounten und dann als normaler user mounten, dann klappts mit dem Schreiben.
Früher klappte das immer direkt und ich kann mich nicht erinnern, irgendetwas anders gemacht zu haben(?).
sudo chgrp Macrob -R /mnt/sda5/*
gibt das hier:
Code: | chgrp: changing group of `Ordnerinhalt': Operation not permitted |
Was mache ich nur falsch |
|
Back to top |
|
|
Evildad Guru
Joined: 15 Apr 2004 Posts: 475
|
Posted: Sat Apr 26, 2008 8:25 am Post subject: |
|
|
Code: | /dev/XXX /mnt/XXX vfat rw,users,exec,umask=0000,noauto 0 0 |
Die Gruppen kannst du nicht ändern (vfat kennt keine User-/Gruppenrechte) |
|
Back to top |
|
|
schachti Advocate
Joined: 28 Jul 2003 Posts: 3765 Location: Gifhorn, Germany
|
Posted: Sat Apr 26, 2008 8:43 am Post subject: |
|
|
Oder einfach die Optionen uid und gid benutzen, siehe man mount für deren Beschreibung. _________________ Never argue with an idiot. He brings you down to his level, then beats you with experience.
How-To: Daten verschlüsselt auf DVD speichern. |
|
Back to top |
|
|
Josef.95 Advocate
Joined: 03 Sep 2007 Posts: 4604 Location: Germany
|
Posted: Sat Apr 26, 2008 10:17 am Post subject: |
|
|
Hi Macrobiotus
Ein beispiel aus meiner fstab
Code: | /dev/XXX /mnt/XXX vfat nosuid,noexec,nodev,dmask=000,fmask=111,utf8=true 0 0 | Damit solltest du auch als User sofort losschreiben können:-) (eventuell utf8 anpassen!)
MfG
josef.95 |
|
Back to top |
|
|
c_m Guru
Joined: 29 Jun 2005 Posts: 358
|
Posted: Sat Apr 26, 2008 2:57 pm Post subject: |
|
|
du kannst im options bereich auch mit "uid=<user>" und "gid=<group>" ne konkrete gruppe bzw. nen konkreten user als owner setzen.
//EDIT: oh, nen post überlesen ^__^ Egal ich lass es jetzt stehen ;-P _________________ This must be thursday ... |
|
Back to top |
|
|
Macrobiotus Apprentice
Joined: 06 Oct 2002 Posts: 230
|
Posted: Sat Apr 26, 2008 3:27 pm Post subject: |
|
|
Danke euch allen!
Das umask=0000 hat´s erstmal gebracht (ohne dass ich so genau verstehe, was es macht )
Code: | 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. |
hilft mir nicht gerade viel ... |
|
Back to top |
|
|
Max Steel Advocate
Joined: 12 Feb 2007 Posts: 2243 Location: My own world! I and Gentoo!
|
Posted: Sat Apr 26, 2008 3:30 pm Post subject: |
|
|
Hmm also ich habe dashier gesetzt:
Code: | UUID=472E-DC9F /vol1 vfat defaults,uid=norbert,gid=p2p,dmask=002,fmask=113,user,exec,owner 0 2 |
Und habe diese BErechtigungen:
Code: | drwxrwxr-x 7 norbert p2p 16384 20. Mär 20:36 Download
-rw-rw-r-- 1 norbert p2p 55060 15. Okt 1999 harlowsi.ttf |
_________________ mfg
Steel
___________________
Heim-PC: AMD Ryzen 5950X, 64GB RAM, GTX 1080
Laptop: Intel Core i5-4300U, 16GB RAM, Intel Graphic
Arbeit-PC: Intel i5-1145G7, 16GB RAM, Intel Iris Xe Graphic (leider WSL2) |
|
Back to top |
|
|
schachti Advocate
Joined: 28 Jul 2003 Posts: 3765 Location: Gifhorn, Germany
|
|
Back to top |
|
|
hoschi Advocate
Joined: 19 Jul 2003 Posts: 2517 Location: Ulm, Germany, Europe
|
Posted: Sat Apr 26, 2008 3:41 pm Post subject: |
|
|
umask ist wie chmod, nur andersrum und gilt generell
wenn du eine neue datei anlegst, haengst es von das umask des system ab welche standardrechte diese datei hat. das diskettendateisystem von microsoft von 1980 kennt keine rechteverwaltung, also setzt man die umask gesondert beim mounten.
Gutes Linux-Buch hilft.
Quote: | umask (abbreviated from user file creation mode mask) is a function in POSIX environments which affects the default file system mode for newly created files and directories of the current process. It controls which of the file permissions will not be set for any newly created file. |
In der Dokumentation von Gentoo wird umask auch angesprochen. Nur wo weiss ich leider nicht mehr. _________________ Just you and me strogg! |
|
Back to top |
|
|
AmonAmarth l33t
Joined: 03 Mar 2005 Posts: 727
|
Posted: Sat Apr 26, 2008 3:52 pm Post subject: |
|
|
hoschi wrote: | das diskettendateisystem von microsoft von 1980 kennt keine rechteverwaltung |
|
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3925 Location: Hamburg
|
Posted: Sat Apr 26, 2008 4:05 pm Post subject: |
|
|
Bei mir funktioniert diese umask tadellos :
tfoerste@n22 ~/devel/linux-2.6 $ grep fat /etc/fstab
/dev/hda5 /mnt/D vfat auto,user,uid=tfoerste,gid=users,umask=0077 |
|
Back to top |
|
|
c_m Guru
Joined: 29 Jun 2005 Posts: 358
|
Posted: Sat Apr 26, 2008 7:38 pm Post subject: |
|
|
hoschi wrote: | das diskettendateisystem von microsoft von 1980 |
Du denkst aber schon dran, dass VFAT != FAT16 ist ?! ;-> _________________ This must be thursday ... |
|
Back to top |
|
|
Macrobiotus Apprentice
Joined: 06 Oct 2002 Posts: 230
|
Posted: Sat Apr 26, 2008 9:11 pm Post subject: |
|
|
Ups, da war ich wohl ungenau
umask ist relativ klar, aber 0000 |
|
Back to top |
|
|
hoschi Advocate
Joined: 19 Jul 2003 Posts: 2517 Location: Ulm, Germany, Europe
|
Posted: Sat Apr 26, 2008 9:55 pm Post subject: |
|
|
AmonAmarth wrote: | hoschi wrote: | das diskettendateisystem von microsoft von 1980 kennt keine rechteverwaltung |
|
FAT ist und war nie fuer Festplatten, geschweige den fuer Datentraeger mit mehr als 2 MB gedacht.
Aber bei Microsoft wundert einem das ja auch nicht.
c_m wrote: | hoschi wrote: | das diskettendateisystem von microsoft von 1980 |
Du denkst aber schon dran, dass VFAT != FAT16 ist ?! ;-> |
Ein wahrer Fortschritt
Fuenfzehn Jahre spaeter, Microsoft vergewaltigt gerade die IT-Welt mit einem 16/32-Bit Krueppel mit dem Namen Windows95 (MS-DOS mit Klickibunti), und da heben die glatt das 8+3 Zeichenlimit auf _________________ Just you and me strogg! |
|
Back to top |
|
|
|