From: Shriramana Sharma <samjnaa@gmail.com>
To: Linux C Programming List <linux-c-programming@vger.kernel.org>
Subject: OT: Why does mount -o remount uid= not change the uid in the mounted partition?
Date: Sun, 28 Sep 2008 10:31:13 +0530 [thread overview]
Message-ID: <48DF0F99.8020902@gmail.com> (raw)
Hello I tried asking this elsewhere but got no response so turning back
to my friends here though this is OT.
/dev/sdb1 is a VFAT partition. Now see:
[samjnaa:/mnt] sudo mount /dev/sdb1 /mnt/sdb1
[samjnaa:/mnt] ls sdb1 -l
total 28
drwxr-xr-x 7 root root 4096 2008-08-06 15:07 apps
...
drwxr-xr-x 2 root root 4096 2008-08-07 11:07 uload
[samjnaa:/mnt] sudo mount /dev/sdb1 /mnt/sdb1 -o remount,uid=samjnaa
[samjnaa:/mnt] ls sdb1 -l
total 28
drwxr-xr-x 7 root root 4096 2008-08-06 15:07 apps
...
drwxr-xr-x 2 root root 4096 2008-08-07 11:07 uload
Account to the mount manpage, -o remount is "commonly used to change the
mount flags for a file system" but why does it then not change the uid?
If I fully umount the partition and do another clean mount with -o
uid=samjnaa, I get the desired result, but why doesn't remount work?
Shriramana Sharma.
reply other threads:[~2008-09-28 5:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48DF0F99.8020902@gmail.com \
--to=samjnaa@gmail.com \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.