RE: Mounting an ext2 filesystem at mount point with specific uid,gid

2007-09-23 Thread David Balazic
From: Kevin Mark [mailto:[EMAIL PROTECTED]

  On Sat, Sep 22, 2007 at 05:30:11AM +0530, Raj Kiran Grandhi wrote:
  [EMAIL PROTECTED] wrote:
 
  After mounting, run
  # chown storage.storage /home/storage/store
 
 
 Hi Rajkiran,
 it should be noted that when you give an instruction that is
 'destructive' in that it will alter the ownership of all the files on
 this volume, you should make sure to tell the poster this as a
 precaution.

It wont alter the ownership of all the files on that volume. It will alter only
/home/storage/store (namely, the root of that volume)
 
Regards,
David


Re: Mounting an ext2 filesystem at mount point with specific uid, gid

2007-09-22 Thread Kevin Mark
On Sat, Sep 22, 2007 at 05:30:11AM +0530, Raj Kiran Grandhi wrote:
 [EMAIL PROTECTED] wrote:
 Hello,
 I'm using debian 4.0r1. I have an ext2 partition at /dev/hda1 and want to 
 mount
 it at /home/storage/store. The /etc/fstab record I use is as follows:
 /dev/hda1   /home/storage/storeext2   defaults   0   4
 Before I mount it, the command ls -al /home/storage yields:
 drwxr-xr-x 2 storage storage 4096 2007-09-19 17:42 store
 Which is of course empty. After the mount, which is successfull, the 
 command ls -al /home/storage yields:
 drwxrwsr-x 10505505 4096 2007-09-21 16:03 store
 It seems that system assigns the directory hierarchy under 'store' to an 
 unknown user/groupid, for security purposes I suppose. But I want it to 
 assign it to user 'storage'  group 'storage'
 How can I do that?
 Although it seems a very basic administrative task, I haven't found a way 
 to do it.
 I would greatly appreciate any help
 Antonis Tsakiridis

 After mounting, run
 # chown storage.storage /home/storage/store


Hi Rajkiran,
it should be noted that when you give an instruction that is
'destructive' in that it will alter the ownership of all the files on
this volume, you should make sure to tell the poster this as a
precaution.
cheers,
Kev
-- 
|  .''`.  == Debian GNU/Linux == |   my web site:   |
| : :' :  The  Universal |mysite.verizon.net/kevin.mark/|
| `. `'  Operating System| go to counter.li.org and |
|   `-http://www.debian.org/ |be counted! #238656   |
|  my keyserver: subkeys.pgp.net | my NPO: cfsg.org |
|join the new debian-community.org to help Debian!  |
|___  Unless I ask to be CCd, assume I am subscribed ___|


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Mounting an ext2 filesystem at mount point with specific uid, gid

2007-09-21 Thread anomatos

Hello,

I'm using debian 4.0r1. I have an ext2 partition at /dev/hda1 and want to mount
it at /home/storage/store. The /etc/fstab record I use is as follows:

/dev/hda1   /home/storage/storeext2   defaults   0   4

Before I mount it, the command ls -al /home/storage yields:

drwxr-xr-x 2 storage storage 4096 2007-09-19 17:42 store

Which is of course empty. After the mount, which is successfull, the command 
ls -al /home/storage yields:

drwxrwsr-x 10505505 4096 2007-09-21 16:03 store

It seems that system assigns the directory hierarchy under 'store' to an 
unknown user/groupid, for security purposes I suppose. But I want it to assign 
it to user 'storage'  group 'storage'

How can I do that?

Although it seems a very basic administrative task, I haven't found a way to do 
it.

I would greatly appreciate any help

Antonis Tsakiridis


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Mounting an ext2 filesystem at mount point with specific uid, gid

2007-09-21 Thread CaT
On Fri, Sep 21, 2007 at 03:15:49PM +0300, [EMAIL PROTECTED] wrote:
 drwxr-xr-x 2 storage storage 4096 2007-09-19 17:42 store
 
 Which is of course empty. After the mount, which is successfull, the command 
 ls -al /home/storage yields:
 
 drwxrwsr-x 10505505 4096 2007-09-21 16:03 store
 
 It seems that system assigns the directory hierarchy under 'store'
 to an unknown user/groupid, for security purposes I suppose. But I
 want it to assign it to user 'storage'  group 'storage'

Who owns what is stored on the filesystem itself as user ids and group
ids (numbers). The /etc/passwd and /etc/group files are, amongst other things, 
maps
between user and group names and user and group ids. The reason you're
just seeing numbers is because there are no passwd or group entries to
map them into names.

 How can I do that?

You can't with a mount option. You'd need to chown them to the user
and/or group you want. This would modify the filesystem though.

Alternatively you can use adduser and addgroup to create users and
groups that map to those ids. Complications will arise if you already
have such mappings in some form.

 Although it seems a very basic administrative task, I haven't found a way to 
 do it.

Mount options for what you're thinking of exist for some filesystems
because they have no concept of ownerships themselves. ext2 does and so
such options do not exist.

-- 
To the extent that we overreact, we proffer the terrorists the
greatest tribute.
- High Court Judge Michael Kirby


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Mounting an ext2 filesystem at mount point with specific uid, gid

2007-09-21 Thread Johannes Wiedersich
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

[EMAIL PROTECTED] wrote:
 Hello,

 I'm using debian 4.0r1. I have an ext2 partition at /dev/hda1 and
 want to mount it at /home/storage/store. The /etc/fstab record I use
 is as follows:

 /dev/hda1   /home/storage/storeext2   defaults   0   4

Why do you have a 4 as last field? From man fstab:

 The  sixth  field,  (fs_passno), is used by the fsck(8) program to
 determine the order in which filesystem checks are done at reboot
 time.  The root filesystem should be specified with a fs_passno of 1,
 and  other filesystems  should  have  a fs_passno of 2.

Johannes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG873HC1NzPRl9qEURAueIAJ9ueRtVAk0E0flBHARM4bTpfBAZzQCfXY2O
LRg8ViKOYRdHHhBAZKn9TUA=
=ny0g
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



RE: Mounting an ext2 filesystem at mount point with specific uid, gid

2007-09-21 Thread David Balazic
The permissions and user/group ids are stored on the ext2 partition.
As always ;-)
 
The fact that the ount point has one set of those before, and another after 
mount can be a bit confusing.
 
To clarify :
After mount, the root of the filesytem on /dev/hda1 becomes /home/storage/store.
The original /home/storage/store directory is hidden until hda1 is umounted.
 
Regards,
David
 
PS: Why can I not send to debian-user and why was my unsubscribe REQUEST 
ignored ?
 
 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Fri 21-Sep-07 14:15
To: debian-user@lists.debian.org
Subject: Mounting an ext2 filesystem at mount point with specific uid, gid




Hello,

I'm using debian 4.0r1. I have an ext2 partition at /dev/hda1 and want to mount
it at /home/storage/store. The /etc/fstab record I use is as follows:

/dev/hda1   /home/storage/storeext2   defaults   0   4

Before I mount it, the command ls -al /home/storage yields:

drwxr-xr-x 2 storage storage 4096 2007-09-19 17:42 store

Which is of course empty. After the mount, which is successfull, the command 
ls -al /home/storage yields:

drwxrwsr-x 10505505 4096 2007-09-21 16:03 store

It seems that system assigns the directory hierarchy under 'store' to an 
unknown user/groupid, for security purposes I suppose. But I want it to assign 
it to user 'storage'  group 'storage'

How can I do that?

Although it seems a very basic administrative task, I haven't found a way to do 
it.

I would greatly appreciate any help

Antonis Tsakiridis


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]





Re: Mounting an ext2 filesystem at mount point with specific uid, gid

2007-09-21 Thread Raj Kiran Grandhi

[EMAIL PROTECTED] wrote:

Hello,

I'm using debian 4.0r1. I have an ext2 partition at /dev/hda1 and want to mount
it at /home/storage/store. The /etc/fstab record I use is as follows:

/dev/hda1   /home/storage/storeext2   defaults   0   4

Before I mount it, the command ls -al /home/storage yields:

drwxr-xr-x 2 storage storage 4096 2007-09-19 17:42 store

Which is of course empty. After the mount, which is successfull, the command ls -al 
/home/storage yields:

drwxrwsr-x 10505505 4096 2007-09-21 16:03 store

It seems that system assigns the directory hierarchy under 'store' to an unknown 
user/groupid, for security purposes I suppose. But I want it to assign it to user 
'storage'  group 'storage'

How can I do that?

Although it seems a very basic administrative task, I haven't found a way to do 
it.

I would greatly appreciate any help

Antonis Tsakiridis



After mounting, run
# chown storage.storage /home/storage/store

hth,
rajkiran


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]