Hello all: I have backed up an ext3 filesystem. Now I would like to mount it on another system where I have different user name. I would like to avoid working as root with the mounted system. Can I define the user id/name (practically my other user name) who should be the owner of the newly mounted files in the case of ext3? I could not find an option for this in the man page. Thanks, IG _____________________________________________________________________ FotoMarket - digitális fotókidolgozás már 25 Ft-tól. http://ad.adverticum.net/b/cl,1,6022,99786,162268/click.prm
* Istvan Gabor (suseuser04@freemail.hu) [20060925 16:42]:
I have backed up an ext3 filesystem. Now I would like to mount it on another system where I have different user name. I would like to avoid working as root with the mounted system. Can I define the user id/name (practically my other user name) who should be the owner of the newly mounted files in the case of ext3? I could not find an option for this in the man page.
Is this two different user names and the same uid or do both differ? Only in
the latter case would you have to do anything and uAFAIK you can't do that
directly.
But something like this, run as root, should work:
find / -uid
Is this two different user names and the same uid or do both differ? Only in the latter case would you have to do anything and uAFAIK you can't do that directly.
I guess that only usernames are different and they have the same UID.
But something like this, run as root, should work:
find / -uid
-print0| xargs -0 chown
name> The filesystem backed up is read only. Thanks! _____________________________________________________________________ FotoMarket - digitális fotókidolgozás már 25 Ft-tól. http://ad.adverticum.net/b/cl,1,6022,99786,162268/click.prm
On Monday 25 September 2006 10:42 am, Istvan Gabor wrote:
Hello all:
I have backed up an ext3 filesystem. Now I would like to mount it on another system where I have different user name. I would like to avoid working as root with the mounted system. Can I define the user id/name (practically my other user name) who should be the owner of the newly mounted files in the case of ext3? I could not find an option for this in the man page. The mounting is not a problem, but the permissions of the directories and files are. The ownership and group is by userid and group id. If the user id of a file on one system is associated with your user name, but on the other system it could be associated with another user or none at all.
--
Jerry Feldman
The mounting is not a problem, but the permissions of the directories and files are. The ownership and group is by userid and group id. If the user id of a file on one system is associated with your user name, but on the other system it could be associated with another user or none at all.
Thanks, That was my question. Is it possible to force mounting an ext3 and its files under other username that is specified in the filesystem? Thanks, IG _____________________________________________________________________ FotoMarket - digitális fotókidolgozás már 25 Ft-tól. http://ad.adverticum.net/b/cl,1,6022,99786,162268/click.prm
Istvan, On Monday 25 September 2006 12:12, Istvan Gabor wrote:
...
That was my question. Is it possible to force mounting an ext3 and its files under other username that is specified in the filesystem?
That question does not make sense for native Unix / Linux file systems, since they associate a numeric owner and group ID with each file system entity (file, directory, etc.). There is no user or group ID associated with the act of mounting or of the mount that results. For FAT file systems, on the other hand, where there are no IDs stored in the file system structures, there is a user and group ID associated with the mount and every file and directory on the mounted FAT file system is arbitrarily / artificially associated with those IDs.
Thanks, IG
Randall Schulz
That was my question. Is it possible to force mounting an ext3 and its files under other username that is specified in the filesystem?
That question does not make sense for native Unix / Linux file systems, since they associate a numeric owner and group ID with each file system entity (file, directory, etc.). There is no user or group ID associated with the act of mounting or of the mount that results.
Thanks Randall, this was what I was not sure about. You exactly answered what I wanted to know. Thanks, IG ________________________________________________________________________ Most érdemes lakástakarék szerződést kötni! [origo] lakáskassza http://lakaskassza.origo.hu/index.html
participants (4)
-
Istvan Gabor
-
Jerry Feldman
-
Philipp Thomas
-
Randall R Schulz