View previous topic :: View next topic |
Author |
Message |
ChrisM87 l33t
Joined: 07 Aug 2004 Posts: 728 Location: Rheinland-Pfalz (Germany)
|
Posted: Thu Sep 16, 2004 3:17 pm Post subject: Mountproblem |
|
|
Hi,
ich habe in meinem Homelaufwerk einen Mount, nämlich Daten (/home/chris/Daten), der auf /dev/hda6 zeigt. Ich habe auch volle Berechtigung für diesen Ordner (chris:users).
In /etc/fstab steht folgendes:
/dev/hda6 /home/chris/Daten vfat noatime 0 1
Das Problem ist jetzt, dass immer, wenn das Teil gemountet wird (also i.d.R. direkt beim Hochfahren), die Berechtigung für den Zugriff auf root übergeht, weil es ja von root gemounted wird. Wenn ich es dann aber unmounte, "gehört" der Ordner wieder dem chris-User.
Natürlich ist es blöd, wenn der Ordner root gehört, wie kann ich das also ändern?
Eine Idee von mir war, mit noauto und user zu arbeiten und dann immer von Hand zu mounten, aber das kann ja wohl nicht die Lösung sein.
ChrisM |
|
Back to top |
|
|
Inte Veteran
Joined: 15 Jul 2003 Posts: 1387 Location: Mannheim, GER
|
Posted: Thu Sep 16, 2004 3:30 pm Post subject: |
|
|
Es ist zwar nicht ganz sauber, aber warum versuchst Du es nicht mit users?
user != users
man mount
Code: | 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).
users Allow every user to mount and unmount the file system. This option implies the options noexec, nosuid, and nodev (unless overridden by subsequent
options, as in the option line users,exec,dev,suid). |
_________________ Gentoo Linux - Die Metadistribution |
|
Back to top |
|
|
evermind Guru
Joined: 10 Jan 2004 Posts: 322
|
Posted: Thu Sep 16, 2004 3:37 pm Post subject: |
|
|
die lösung is umask da bei vfat man kein userrechte setzen kann so wie
man es gewöhnt ist. Deshalb muss man sich mit umask behelfen
Code: | /dev/hda6 /home/chris/Daten vfat defaults,umask=000 |
wen du mehr über umask wissen willst einfach mal die manpage
man mount oder das Forums durchsuchen
Last edited by evermind on Thu Sep 16, 2004 3:43 pm; edited 2 times in total |
|
Back to top |
|
|
Inte Veteran
Joined: 15 Jul 2003 Posts: 1387 Location: Mannheim, GER
|
Posted: Thu Sep 16, 2004 3:42 pm Post subject: |
|
|
Arrgh Lesen müßte man können
Du willst da zugreifen, und nicht das Laufwerk aushängen können.
thx, evermind. _________________ Gentoo Linux - Die Metadistribution |
|
Back to top |
|
|
mrsteven Veteran
Joined: 04 Jul 2003 Posts: 1938
|
Posted: Thu Sep 16, 2004 3:48 pm Post subject: |
|
|
Bei Dateisystemen wie ReiserFs, XFS, ext2, ext3 usw. sollte das so gehen:
Code: |
mount /dev/hda6 /home/chris/Daten #Dateisystem einhängen
chown chris:users /home/chris/Daten
|
Also erst den Eigentümer ändern, wenn das FS eingehängt wurde.
Bei vfat geht das aber nur über die Mountoptionen, die du in /etc/fstab eintragen kannst. _________________ Unix philosophy: "Do one thing and do it well."
systemd: "Do everything and do it wrong." |
|
Back to top |
|
|
ChrisM87 l33t
Joined: 07 Aug 2004 Posts: 728 Location: Rheinland-Pfalz (Germany)
|
Posted: Thu Sep 16, 2004 3:59 pm Post subject: |
|
|
Hi,
danke für den Tipp mit umask, so hat es tatsächlich funktioniert!
ChrisM |
|
Back to top |
|
|
|
|
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
|
|