Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-23-2003, 06:43 PM
|
#1
|
Member
Registered: Apr 2003
Location: Edinburgh, Scotland, UK
Distribution: SuSE 9.2, VectorLinux 3.2
Posts: 68
Rep:
|
permissions and mounted fat32 partition
Hi all
I just installed rh9 on a friend's PC as a single drive dual-boot. He began with two 15GB NTFS partitions, so I removed the second one, gave about 4.5GB to / and then filled up the remaining space with a new fat32 partition (because ntfs isn't supported under linux, right?, and I wanted him to be able to share his data between the two OSs). I created the fat32 partition with something called Paragon Partition Manager under XP.
I've modified fstab so that the fat32 partition is mounted to /fat32 at start-up. It's working OK except that the permissions for /fat32 (when mounted) allow only u (i.e. root) to write files. I can neither change the owner of /fat32 when mounted, or alter the permissions (and if I log in as root and make the changes in graphical mode, they simply don't get registered). This renders the partition pretty useless unless he's prepared to log in as root or do everything from the terminal. How can I make the partition writable for other users?? I never had this problem before, so I just can't work out what's going on. Furthermore, because my own computer is a few hundred miles away, I can't check it out for comparison.
Best, Ian
|
|
|
06-23-2003, 06:52 PM
|
#2
|
Member
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344
Rep:
|
What does the fstab entry for the part. look like? My guess is that you would have to make the files owned by the user or group of users that you want to be able to write to the partition with the gid and.or uid options.
Ian
|
|
|
06-23-2003, 08:47 PM
|
#3
|
Member
Registered: Jun 2003
Location: mason, mi, usa
Distribution: rh9
Posts: 87
Rep:
|
did you try chmod? or like green_dragon37 said, chown?
chmod 775 /thepartition <-- this makes the root and user have read/write/executable rights with other having only read/executable.
chown useryouwanttoownpartition /thepartition
|
|
|
06-24-2003, 07:12 AM
|
#4
|
Member
Registered: Apr 2003
Location: Edinburgh, Scotland, UK
Distribution: SuSE 9.2, VectorLinux 3.2
Posts: 68
Original Poster
Rep:
|
Hi, and cheers for the replies
fstab looks like:
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/hda6 /fat32 vfat defaults 1 1
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
chmod doesn't work once the partition is mounted. Here's the error I get:
[root@e-stc004 root]# chmod a+w /fat32
chmod: changing permissions of `/fat32' (requested: 0777, actual: 0755): Operation not permitted
I get the same effect if I umount and then mount manually with:
[root@e-stc004 root]# mount -t vfat /dev/hda6 /fat32
Cheers
Ian
|
|
|
06-24-2003, 07:29 AM
|
#5
|
Member
Registered: Mar 2003
Posts: 76
Rep:
|
in /etc/fstab under options, for the mounted drive set umask=002
|
|
|
06-24-2003, 07:31 AM
|
#6
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Change this line:
/dev/hda6 /fat32 vfat defaults 1 1
to
/dev/hda6 /fat32 vfat users,auto,umask=002,rw 0 0
Or for the more technical geeks:
/dev/hda6 /fat32 vfat users,uid=0,gid=0,umask=002,auto,noexec,rw 0 0
Cool
|
|
|
06-25-2003, 03:33 AM
|
#7
|
Member
Registered: Apr 2003
Location: Edinburgh, Scotland, UK
Distribution: SuSE 9.2, VectorLinux 3.2
Posts: 68
Original Poster
Rep:
|
cheers for all the help
In the end I used uid=500,gid=500 because using 0 (i.e. root) left me with exactly the same problems.
All best, Ian
|
|
|
06-25-2003, 04:10 AM
|
#8
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
 And I should be slapped with a mighty wet noodle, that should have been my numbers in my example, not root's uid
Cool
|
|
|
06-25-2003, 05:17 AM
|
#9
|
Member
Registered: Apr 2003
Location: Edinburgh, Scotland, UK
Distribution: SuSE 9.2, VectorLinux 3.2
Posts: 68
Original Poster
Rep:
|
No problem. At least it made me think about what the values meant!!
Many thanks
Ian
|
|
|
All times are GMT -5. The time now is 12:45 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|