🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #55249

Re: mounting hardisk uidroot with group access rights

#55249
From: James Mcpherson
Date: Fri, 11 Jul 1997 00:00
44 lines
2232 bytes
Herry (aherr@chaos.mur.csu.edu.au) spake thusly:
: --------------C637147FE1B93AE416413D6D
: Content-Type: text/plain; charset=iso-8859-1
: Content-Transfer-Encoding: 8bit

<soapbox>
Firstly, please _don't_ post to usenet in html - it's remarkably 
<blink>bletcherous </blink>
and since most web-based newsreaders post plaintext as well as html, readers
get the post twice.
</soapbox>


: I am running into trouble mounting my hardisk uid root but giving access
: to other users via guid X.
: I am unable to change write access to the disk as root. I could mount
: the disk as uid (users), but I'd rather prefer to have root as the
: owner.
: Here the way I do it:
:  mount -t msdos -o conv=auto,uid=0,gid=100,umask 002  /dev/hdc1 /dosd
: The disk than is mounted with:
: user:root group:100 rights:dxwr-rx-rx
: chmod g+w nor chmod 002 results in a permission denied answer.
: Am I missing something or what do I do wrong?

you need to add an entry to your /etc/fstab file so that other users can
mount the disk, as follows:

/dev/hdc1	/dosd	msdos	defaults,user,noexec	0 0

Then any user of your machine can mount /dev/hdc1. From a security point
of view, you should have "defaults,noexec" in column 4 instead. This will
also make /dev/hdc1 automatically mounted on boot (you can change that by
inserting noauto into column 4). Then you can change the ownership of the
mount point or change the perms on it (which is what I'd do).

hth,
jcm

-- 
 I do not speak for the University of Queensland or the University Library
J.McPherson@.mailbox.uq.edu.au   | this space _not_ for rent. 
j.mcpherson@.library.uq.edu.au   | remove erroneous char to reply properly
Technical Details
Message-ID: <5q5bvn$kjj$3@nargun.cc.uq.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <33C604B3.F83324B8@chaos.mur.csu.edu.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,80627e4871a78c13
X-Google-Attributes: gid102983,public
From: mljmcphe@mailbox.uq.edu.au (James Mcpherson)
Subject: Re: mounting hardisk uidroot with group access rights
Date: 1997/07/11
Message-ID: <5q5bvn$kjj$3@nargun.cc.uq.edu.au>
X-Deja-AN: 256179121
References: <33C604B3.F83324B8@chaos.mur.csu.edu.au>
Organisation: Not on your life
Organization: University of Queensland
Reply-To: J.McPherson@..mailbox.uq.edu.au
Newsgroups: aus.computers.linux