LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-27-2005, 07:05 PM   #1
RH9Linux
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Rep: Reputation: 0
Exclamation how to give 'guest' rwx permission to a file/directory


Hi

I just mounted my windows partition(FAT32) onto Linux , but how do I make my 'guest' account have the rwx rights to the windows directory/partition as root?

Thank you!

Last edited by RH9Linux; 06-27-2005 at 08:48 PM.
 
Old 06-27-2005, 07:33 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Let's say the windows partition is mounted at /mnt/windows. To give all users who are members of the users group the rwx permissions, as root issue the command:
chmod -R g +rwx /mnt/windows

If you want only one user to have such access (other than root), create a new group, and add the guest name to that group. Then change the group ownership of /mnt/windows to the new group.
Use the command:
chgrp -R <newgroup name> /mnt/windows

The -R makes the change recursive throughout /mnt/windows.
 
Old 06-27-2005, 08:45 PM   #3
RH9Linux
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Hi

it says:
[root@Red_Hat_LInux mnt]# chmod -R g +rwx /mnt/windows/
chmod: invalid mode string: `g'

and when I try
[root@Red_Hat_LInux mnt]# chmod -R -g +rwx /mnt/windows/
it shows a list of window files:
.
.
.
chmod: changing permissions of `/mnt/windows//windows/system32/config/default' (requested: 0200, actual: 0644): Operation not permitted
chmod: changing permissions of `/mnt/windows//windows/system32/drivers' (requested: 0200, actual: 0755): Operation not permitted
chmod: changing permissions of `/mnt/windows//windows/system32/drivers/etc' (requested: 0200, actual: 0755): Operation not permitted
chmod: changing permissions of `/mnt/windows//windows/system32/drivers/etc/hosts' (requested: 0200, actual: 0644): Operation not permitted
chmod: changing permissions of `/mnt/windows//windows/system32/drivers/etc/lmhosts.sam' (requested: 0200, actual: 0644): Operation not permitted
chmod: changing permissions of `/mnt/windows//windows/system32/drivers/etc/networks' (requested: 0200, actual: 0644): Operation not permitted
chmod: changing permissions of `/mnt/windows//windows/system32/drivers/etc/protocol' (requested: 0200, actual: 0644): Operation not permitted
chmod: changing permissions of `/mnt/windows//windows/system32/drivers/etc/services' (requested: 0200, actual: 0644): Operation not permitted
chmod: changing permissions of `/mnt/windows//windows/system32/drivers/disdn' (requested: 0200, actual: 0755): Operation not permitted
chmod: changing permissions of `/mnt/windows//windows/system32/drivers/wmilib.sys' (requested: 0200, actual: 0644):
.
.
.
etc.?
 
Old 06-27-2005, 08:59 PM   #4
RH9Linux
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Original Poster
Rep: Reputation: 0
ok got it, it should be:
[root@Red_Hat_LInux]# chmod -R g+rwx /mnt/windows/

but it still gives me a list of files with operation not permitted:
.
.
.
.
chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse.htm' (requested: 0775, actual: 0755): Operation not permitted
chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_a.htm' (requested: 0775, actual: 0755): Operation not permitted
chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_b.htm' (requested: 0775, actual: 0755): Operation not permitted
chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_c.htm' (requested: 0775, actual: 0755): Operation not permitted
chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_d.htm' (requested: 0775, actual: 0755): Operation not permitted
chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_e.htm' (requested: 0775, actual: 0755): Operation not permitted
chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_f.htm' (requested: 0775, actual: 0755): Operation not permitted
chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_g.htm' (requested: 0775, actual: 0755): Operation not permitted
chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_h.htm' (requested: 0775, actual: 0755): Operation not permitted
chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_i.htm' (requested: 0775, actual: 0755): Operation not permitted
chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_j.htm' (requested: 0775, actual: 0755): Operation not permitted
chmod: changing permissions of `./windows//windows/system32/oobe/html/mouse/mouse_k.htm' (requested: 0775, actual: 0755): Operation not permitted
.
.
.


Last edited by RH9Linux; 06-27-2005 at 09:02 PM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i get permission to move file into directory timalan SUSE / openSUSE 2 08-24-2005 09:25 PM
Howto give permission to hole directory js72 Debian 3 12-08-2004 04:50 PM
give users permission to install software in their directory? ksgill Linux - Newbie 7 12-17-2003 11:16 AM
file/directory access permission question correro Linux - General 4 05-22-2003 07:48 PM
Setting File / Directory Permission, with sticky Primetime Linux - Newbie 3 01-06-2003 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:46 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration