Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Schreibrechte bei vfat
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Macrobiotus
Apprentice
Apprentice


Joined: 06 Oct 2002
Posts: 230

PostPosted: Sat Apr 26, 2008 8:18 am    Post subject: Schreibrechte bei vfat Reply with quote

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 :oops:
Back to top
View user's profile Send private message
Evildad
Guru
Guru


Joined: 15 Apr 2004
Posts: 475

PostPosted: Sat Apr 26, 2008 8:25 am    Post subject: Reply with quote

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
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Sat Apr 26, 2008 8:43 am    Post subject: Reply with quote

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
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4604
Location: Germany

PostPosted: Sat Apr 26, 2008 10:17 am    Post subject: Reply with quote

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
View user's profile Send private message
c_m
Guru
Guru


Joined: 29 Jun 2005
Posts: 358

PostPosted: Sat Apr 26, 2008 2:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Macrobiotus
Apprentice
Apprentice


Joined: 06 Oct 2002
Posts: 230

PostPosted: Sat Apr 26, 2008 3:27 pm    Post subject: Reply with quote

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 ... :oops:
Back to top
View user's profile Send private message
Max Steel
Advocate
Advocate


Joined: 12 Feb 2007
Posts: 2243
Location: My own world! I and Gentoo!

PostPosted: Sat Apr 26, 2008 3:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Sat Apr 26, 2008 3:34 pm    Post subject: Reply with quote

Macrobiotus wrote:
Das umask=0000 hat´s erstmal gebracht (ohne dass ich so genau verstehe, was es macht ;) )


Google-Suche nach umask, erster Treffer: http://linuxseiten.kg-it.de/index.php?index=bash_Der_Befehl_umask. :wink:
_________________
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
View user's profile Send private message
hoschi
Advocate
Advocate


Joined: 19 Jul 2003
Posts: 2517
Location: Ulm, Germany, Europe

PostPosted: Sat Apr 26, 2008 3:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
AmonAmarth
l33t
l33t


Joined: 03 Mar 2005
Posts: 727

PostPosted: Sat Apr 26, 2008 3:52 pm    Post subject: Reply with quote

hoschi wrote:
das diskettendateisystem von microsoft von 1980 kennt keine rechteverwaltung


8O :lol: :lol: :lol:
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3925
Location: Hamburg

PostPosted: Sat Apr 26, 2008 4:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
c_m
Guru
Guru


Joined: 29 Jun 2005
Posts: 358

PostPosted: Sat Apr 26, 2008 7:38 pm    Post subject: Reply with quote

hoschi wrote:
das diskettendateisystem von microsoft von 1980

Du denkst aber schon dran, dass VFAT != FAT16 ist ?! ;->
_________________
This must be thursday ...
Back to top
View user's profile Send private message
Macrobiotus
Apprentice
Apprentice


Joined: 06 Oct 2002
Posts: 230

PostPosted: Sat Apr 26, 2008 9:11 pm    Post subject: Reply with quote

Ups, da war ich wohl ungenau :roll:
umask ist relativ klar, aber 0000 :?
Back to top
View user's profile Send private message
hoschi
Advocate
Advocate


Joined: 19 Jul 2003
Posts: 2517
Location: Ulm, Germany, Europe

PostPosted: Sat Apr 26, 2008 9:55 pm    Post subject: Reply with quote

AmonAmarth wrote:
hoschi wrote:
das diskettendateisystem von microsoft von 1980 kennt keine rechteverwaltung


8O :lol: :lol: :lol:


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 :mrgreen:
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 :roll:
_________________
Just you and me strogg!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum