-
June 4th, 2004, 08:17 PM
#1
Member
Need help from Redhat users!
Goodday.
OS: Redhat 9
Harddisk : FAT
Need help becoz i couldnt really get users to write data into my FAT formatted harddisk.
i have aready mounted hdb5 (which is the FAT harddisk) to a folder call "windows"
Only Root have RWX permission on FAT windows.
[root@localhost mnt]# ls -l windows
total 4
drwxr-xr-x 2 root root 4096 Jun 8 00:58 Recycled
I want to allow user to have Write permission on the harddisk as well.
[root@localhost mnt]# chmod u=rwx windows
[root@localhost mnt]# ls -l windows
total 4
drwxr-xr-x 2 root root 4096 Jun 8 00:58 Recycled
But it doesnt work
I tried to change ownership to a user call novkhan but it doesnt work as well!
[root@localhost mnt]# chown novkhan windows
chown: changing ownership of `windows': Operation not permitted
[root@localhost mnt]# ls -l windows
total 4
drwxr-xr-x 2 root root 4096 Jun 8 00:58 Recycled
I hope to achieve WRX for all users on my FAT Harddisk.
drwxr-wxr-wxr
please help !
Thankyou!
Will to Learn
javascript:myimagepopup(300,400,\'\')
-
June 4th, 2004, 10:11 PM
#2
novkhan,
I have never tried to do this before (to a fat), but doesn't it work the same as any other directory or file:
If the directory was named "sandy"
chmod 777 sandy
**the result should be: drwxrwxrwx
chmod 755 sandy
**the result should be: drwxr-xr-x
chmod 700 sandy
**the result should be: drwx------
chmod 644 sandy
**the result shoud be: drw--r--r--
and: chmod 000 sandy
**the result should be: d---------
Connection refused, try again later.
-
June 5th, 2004, 03:04 AM
#3
Member
Originally posted here by Relyt
novkhan,
I have never tried to do this before (to a fat), but doesn't it work the same as any other directory or file:
If the directory was named "sandy"
chmod 777 sandy
**the result should be: drwxrwxrwx
chmod 755 sandy
**the result should be: drwxr-xr-x
chmod 700 sandy
**the result should be: drwx------
chmod 644 sandy
**the result shoud be: drw--r--r--
and: chmod 000 sandy
**the result should be: d---------
[root@localhost mnt]# chmod 777 windows
chmod: changing permissions of `windows' (requested: 0777, actual: 0755): Operation not permitted
Will to Learn
javascript:myimagepopup(300,400,\'\')
-
June 5th, 2004, 10:01 AM
#4
try "chown /mnt/windows root" first, and then the chmod command, i've seen this problem before with some things i've downloaded, but after the chown command it worked...
-
June 5th, 2004, 08:27 PM
#5
Member
Originally posted here by lepricaun
try "chown /mnt/windows root" first, and then the chmod command, i've seen this problem before with some things i've downloaded, but after the chown command it worked...
[root@localhost mnt]# chown /mnt/windows root
chown: `/mnt/windows': invalid user
[root@localhost mnt]# chown /mnt/windows novkhan
chown: `/mnt/windows': invalid user
[root@localhost mnt]#
Will to Learn
javascript:myimagepopup(300,400,\'\')
-
June 5th, 2004, 11:43 PM
#6
First off, why is the partition fat? Second, give each user a folder and then set permissions for each users
chmod 755 /mnt/windows/sandy
chmod 755 /mnt/windows/mike
etc...
I'm still curious as to why the partition is FAT
You shall no longer take things at second or third hand,
nor look through the eyes of the dead...You shall listen to all
sides and filter them for your self.
-Walt Whitman-
-
June 6th, 2004, 06:53 PM
#7
chmod won't cut it here. You have to either specify the option "user" when mounting the partition (or in fstab) or (better option) add a valid umask to the fstab file. "man mount" should do the trick.
Cheers,
cgkanchi
-
June 6th, 2004, 08:34 PM
#8
cgkanchi
Hey thanks, not having experimented with it before, is that because we are mounting a partition verses just a file or directory?
Connection refused, try again later.
-
June 7th, 2004, 05:26 AM
#9
Relyt,
Sort of. When you mount a device, Linux resets the permissions of the directory to whatever is specified in the fstab file for that file. If the fstab file is empty or says "defaults" in the options section, Linux will only allow root to read and write to and from that device.
Cheers,
cgkanchi
-
June 7th, 2004, 11:47 AM
#10
cgkanchi,
Thanks, for the explanation.
Linux resets the permissions of the directory to whatever is specified in the fstab file for that file. If the fstab file is empty or says "defaults" in the options section, Linux will only allow root to read and write to and from that device.
You have to either specify the option "user" when mounting the partition (or in fstab) or (better option) add a valid umask to the fstab file. "man mount"
That makes sense and is hereby stored in the brain bank for later withdraw.
cheers
Connection refused, try again later.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|