[redhat7.1] hoe een mount chmodden/chownen?

Pagina: 1
Acties:

  • GiLuX
  • Registratie: Juni 1999
  • Laatst online: 12-11-2025
ik moet als root mounten blijkt:
mount /dev/hdb1 /mnt/c (is fat16 windows)

dit is goed

helaas kan ik nu niet als gewone user schrijven naar /mnt/c

dus denk ik ff heel /mnt/c te chmownen naar
mijn user account (ik doe dit als root)
dit mag niet :(
ook chmod 777 mag niet terwijl ik dit wel als root uitvoer.

is dit verboden?
ik kan dus niet scrijven naar /mnt/c als ordinairy user maar wel als root,
maar ik mag als root niet de file permissions aanpassen....:(
raar..denk ik

"I disagree with what you are saying, but I will defend to the death your right to say it." -- not clear who


Verwijderd

"man mount" :?

  • RvdH
  • Registratie: Juni 1999
  • Laatst online: 28-07 15:42

RvdH

Uitvinder van RickRAID

Neuh is niet raar. Je mount geen ext2 filesystem, maar een FAT filesystem, en dat werkt niet met het rechtensysteem wat je probeert toe te passen.

  • RemcoX
  • Registratie: Mei 2000
  • Laatst online: 14-02 20:05
Je kan wel gewoon mounten als user, dan is de owner van de hele /mnt/c user.

  • GiLuX
  • Registratie: Juni 1999
  • Laatst online: 12-11-2025
Op maandag 13 augustus 2001 18:43 schreef RemcoX het volgende:
Je kan wel gewoon mounten als user, dan is de owner van de hele /mnt/c user.
helaas,
al gebrobeerd,
krijg deze melding:
mount: only root can do that

wat nu te doen?

"I disagree with what you are saying, but I will defend to the death your right to say it." -- not clear who


  • RemcoX
  • Registratie: Mei 2000
  • Laatst online: 14-02 20:05
Op maandag 13 augustus 2001 19:37 schreef GiLuX het volgende:

[..]

helaas,
al gebrobeerd,
krijg deze melding:
mount: only root can do that

wat nu te doen?
Euh, je moet die mount in je /etc/fstab zetten met een of andere parameter die ik zo niet precies meer weet. En dan moet het wel kunnen.

(of klets ik nou :? )

  • Tonnes746
  • Registratie: Juni 2001
  • Laatst online: 06-01-2022
Gevonden op Google:
DO>
DO> Is there a way to allow a non root user access to a directory on a win95
DO> partition? Or, failing that, is there a way to mount the partition with
DO> permissions for someone other than root?

YES. You set the 'ownership' and 'permissions' on a bulk (whole file
system) basis on mount. Use the mount options 'uid=', 'gid=', and
'umask=' (from 'man 8 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.

Include 'uid=', 'gid=', and 'umask=' on either your mount command or in
your /etc/fstab file.

bash: exec: /bin/Laden: cannot execute: No such file or directory


  • GiLuX
  • Registratie: Juni 1999
  • Laatst online: 12-11-2025
ok...
dat is al iets duidelijker,
maar wat is "value"?

volgens de manpage moet daar een getal komen..

ik heb geen idee

"I disagree with what you are saying, but I will defend to the death your right to say it." -- not clear who


  • RemcoX
  • Registratie: Mei 2000
  • Laatst online: 14-02 20:05
Bij uid en gid dus resp. user id en group id (te vinden in /etc/passwd). Bij umask dus de permissies.

  • deadinspace
  • Registratie: Juni 2001
  • Nu online

deadinspace

The what goes where now?

Voor een uitleg over permissies als getal, zie 'man chmod' en de NWOS FAQ.
Pagina: 1