Re: chmod & chown don't work

From: Torfinn Ingolfsen (tingo_at_start.no)
Date: 12/30/04


Date: Thu, 30 Dec 2004 12:22:57 +0100

Cheng Hong wrote:

> Hi all,
>
> Recently, I successfully mounted the FAT32 partition to my FreeBSD5.3 box.
> Now, the problem is that I can only work on it as root. The directory
> created cannot be changed to allow other user's access. Anyone has
> experience on this?

As already answered in another reply, you can only decide the ownership
and group at mount time.
The easiest way to make this work the way you want (IMHO) is to chane
the ownership, group and / or permissions on the mountput (ie. the
directory where you will mount your msdos partition) _before_ you mount it.

Something like this:
$ chown hcheng /winwork
$ chown hcheng /winboot

and so on.
HTH

-- 
Torfinn Ingolfsen,
Norway


Relevant Pages

  • Re: mounting issues
    ... Are you saying to set the setgid to a non root group? ... the user that is mounting the drive already ... has sudo permissions to mount drives, but to change the ownership, I ... Change ownership with chown. ...
    (comp.os.linux.misc)
  • Re: Adding a Hard Drive
    ... > partition is then put in its place with its own permissions, ownership, etc ... > allows any user to mount the partition, but it also allows ANY user OTHER ... I presumed that mounting in /home/art/mnt, you wanted the contents of the root ...
    (uk.comp.os.linux)
  • Re: NFS newbie getting unexpected results [long]
    ... >> Only root on Magpie could have set that ownership. ... > nobody:nobody once the mount operation is completed. ... non-privileged user to be able to write to the mount and create ... Let root own the mount points but change their perms to 1777 after ...
    (comp.unix.solaris)
  • [Trouble Ticket #190335] AutoReply: freebsd-questions Digest, Vol 246, Issue 26
    ... please edit your Subject line so it is more specific ... you need to open a root xterm or even a root shell, ... boot manager is installed for this mirror and I would like to remove it ... was that NFS mount managwed ...
    (freebsd-questions)
  • Re: UFS Bug: FreeBSD 6.1/6.2/7.0: MOKB-08-11-2006, CVE-2006-5824, MOKB-03
    ... They can simply mount a filesystem with any number of SUID ... root binaries on it and have their way with the box. ... They have physical access to the machine. ...
    (FreeBSD-Security)