LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-09-2004, 11:41 AM   #1
revenge80200
Member
 
Registered: Mar 2004
Location: Chicago
Distribution: Lenny & Xp
Posts: 238

Rep: Reputation: 30
Changing permissions problem


Hello all,

I have been working on changing the permissions to my windows partition, but for some reason it is not working....

[eek@eek mnt]$ su
Password:

[root@eek mnt]# ls -l
total 12
drwxr-xr-x 2 root root 4096 Jun 16 23:31 cdrom/
drwxr-xr-x 3 root root 4096 Jun 19 16:13 hd/
dr-xr-xr-x 1 root root 4096 Jul 1 16:07 win_c/

[root@eek mnt]# chmod 777 win_c/
chmod: changing permissions of `win_c/': Read-only file system

[root@eek mnt]# chown eek win_c
chown: changing ownership of `win_c': Read-only file system

[root@eek mnt]# exit
exit
[eek@eek mnt]$

Any ideas what I am doing worng? I have been following Quick and Dirty Guide to Linux Permissions but somehow I did something wrong....

Thanks a bunch,
Eric.
 
Old 07-09-2004, 12:08 PM   #2
finidi
Member
 
Registered: Dec 2002
Location: World
Distribution: Fedora Core 4
Posts: 127

Rep: Reputation: 15
The partition mounted at /mnt/win_c is mounted read-only.

Watch in the /etc/fstab file for the /mnt/win_c line, it has the "ro" option for sure.
 
Old 07-09-2004, 12:15 PM   #3
revenge80200
Member
 
Registered: Mar 2004
Location: Chicago
Distribution: Lenny & Xp
Posts: 238

Original Poster
Rep: Reputation: 30
Finidi......thanks for helping....

This is the out put of: file:/etc/fstab/

/dev/hda5 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda7 /home ext3 defaults 1 2
/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0
/dev/hda1 /mnt/win_c ntfs umask=0,nls=iso8859-1,ro 0 0
none /proc proc defaults 0 0
/dev/hda6 swap swap defaults 0 0
none /mnt/hd supermount dev=/dev/ide/host0/bus0/target1/lun0/part1,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,kudzu,codepage=850 0 0

I see the line that you are talking about, but, and sorry about this, what do I do with it?

Thanks,
Eric.
 
Old 07-09-2004, 12:20 PM   #4
finidi
Member
 
Registered: Dec 2002
Location: World
Distribution: Fedora Core 4
Posts: 127

Rep: Reputation: 15
Quote:
Originally posted by revenge80200
/dev/hda1 /mnt/win_c ntfs umask=0,nls=iso8859-1, ro 0 0

I see the line that you are talking about, but, and sorry about this, what do I do with it?

Thanks,
Eric.
Replace that line with:

/dev/hda1 /mnt/win_c ntfs umask=0,nls=iso8859-1 0 0

now the partition will mount rw.
 
Old 07-09-2004, 12:27 PM   #5
revenge80200
Member
 
Registered: Mar 2004
Location: Chicago
Distribution: Lenny & Xp
Posts: 238

Original Poster
Rep: Reputation: 30
Ahhhhhh.....that did it, thanks for the help!

Eric.
 
Old 07-09-2004, 12:42 PM   #6
finidi
Member
 
Registered: Dec 2002
Location: World
Distribution: Fedora Core 4
Posts: 127

Rep: Reputation: 15
Okay !.... but, with that fstab line only root can mount and modify files on that partition. Surely you want to access that from a nonprivileged user.

If that's the case, replace the line with

/dev/hda1 /mnt/win_c ntfs umask=0,nls=iso8859-1, user 0 0


HTH,
 
  


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
Why cant I save a pic after changing it in gimp, permissions problem? M$ISBS Linux - Software 3 08-08-2005 01:27 AM
problem changing file permissions on fat32 partition coolamit78 Linux - Software 4 01-18-2004 02:44 PM
Problem changing permissions on partition habitue Linux - Newbie 2 10-23-2003 09:56 AM
Changing Permissions linuxfond Linux - Newbie 11 07-01-2003 03:48 PM
Changing permissions problem vexer Slackware 3 05-09-2003 01:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration