LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-27-2002, 04:05 AM   #1
explorer1979
Member
 
Registered: Aug 2001
Location: Hong Kong, China
Distribution: CentOS, Red Hat, Mandrake, Debian
Posts: 88

Rep: Reputation: 15
Question RH 8.0 don't let me change attrib by chmod command


Hi all,

I am using RH 8.0, when I install it, I added a mount point to my FAT32 partition, can the mount point called "win_b"

I can read this partiton, but can't write by login as general user, only root can write to "win_b"

Then I login as root and then type the command

#chmod 777 /win_b

It show me than

chmod: changing permissions of `/mnt/win_b' (requested: 0777, actual: 0755): Operation not permitted

What is wrong on my RH 8.0??
 
Old 10-27-2002, 05:18 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
You can't use chmod on a VFAT partition - so nothing is wrong with your RedHat! If you want others to be able to access the mounted partition check the manpage of mount:
Quote:
Mount options for fat
(Note: fat is not a separate filesystem, but a common part
of the msdos, umsdos and vfat filesystems.)

blocksize=512 / blocksize=1024 / blocksize=2048
Set blocksize (default 512).

uid=value and gid=value
Set the owner and group of all files. (Default: the
uid and gid of the current process.)

umask=value
Set the umask (the bitmask of the permissions that
are not present). The default is the umask of the
current process. The value is given in octal.
 
Old 10-27-2002, 11:29 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,228

Rep: Reputation: 3460Reputation: 3460Reputation: 3460Reputation: 3460Reputation: 3460Reputation: 3460Reputation: 3460Reputation: 3460Reputation: 3460Reputation: 3460Reputation: 3460
Add your VFAT partition to the /etc/fstab file. This will allow any user to write and it will mount on boot

/dev/hdxy /mnt/win_b vfat user,auto,umask=000 0 0

Change hdxy to your actual partition
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
chmod to only change directories lluciano Linux - General 2 08-17-2005 02:14 PM
chmod command to change all files in directory paul_mat Linux - Newbie 2 01-10-2005 09:05 PM
chmod won't change the file permissions midtown266 Linux - Newbie 12 11-28-2004 07:46 PM
chmod permission change? tidasu Linux - Newbie 7 08-30-2004 06:02 PM
"chmod" vs. "attrib" netsted Linux - General 2 05-12-2004 01:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration