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 |
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.
|
 |
11-01-2005, 10:29 AM
|
#1
|
Member
Registered: Mar 2005
Posts: 84
Rep:
|
FSTAB and /mnt/windows permission problems. Changes are not permanent?
Hello, has anyone experienced this?
Under Security level 3 (Mandrake 10.1 Community Edition), my documents under /mnt/windows partition are accessible to users only in read but they cannot be edited.
For example, opening a document with OpenOffice is only available in «_read_» mode.
I have to run it as root to be able to edit any file.
I seem to have the solution: I edited the file /etc/fstab with VI editor:
the line:
/dev/hdb1 /mnt/windows vfat umask=0022,iocharset=iso8859-15,codepage=850 0 0
was modified to:
/dev/hdb1 /mnt/windows vfat defaults,umask=000 0 0
then reboot the computer. Now permissions for /mnt/windows are 777. o.k!
However, after more than one week without checking it, I browsed with Konqueror /mnt/windows/ but heck, again! I cannot have acces to fucking /mnt/windows !
I checked the /etc/fstab file and the change I made is there, but it is not giving me the permissions it is supposed to give. What is the problem????
I decided to change once more that line to this:
/dev/hdb1 /mnt/windows vfat defaults,user,auto,umask=000 0 0
I reboot. ... and I see that /mnt/windows is accessible. Fine!!
But if I open a document of /mnt/windows from linux (OpenOffice), and indeed it opens nicely, at the same time Konqueror shows that I just have lost permission to access that partition again; I have to boot to get /etc/fstab to restore permissions and accessibility.
This same problem happens immediately after I move folders from /mnt/windows to my /home partition linux. Is this a known bug? Or else? Which software would be causing this problem, KDE? If so, I am running KDE 3.2.3
Your comments would be grately appreciated.
Maxei DeVraie
|
|
|
11-01-2005, 05:26 PM
|
#2
|
LQ Guru
Registered: Oct 2004
Distribution: Arch
Posts: 5,435
|
I believe that only root should have access to anything in /mnt. Root owns /mnt
If you want user access then mount it to /home/user/somewhere
|
|
|
11-01-2005, 05:48 PM
|
#3
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
Root should own /mnt and /mnt/windows (the mountpoint) but that doesn't stop you mounting your Windows partition with umask=0 to allow anyone to write to the files within that partition. Its not the permissions on the mountpoint that cause problems like this but the permission mask that's applied to the partition when its mounted (since FAT partitions don't have permissions at all).
Maxei try lowering the security level - its most likely msec that is changing this. In fact the way you've described it - it reverts regularly but at seemingly random times not related to anything you're doing manually - I'd be almost certain that msec is the cause of this problem.
Also you don't need to reboot to make changes to mount options - just unmount and re-mount the partition. You say you're running 10.1 community - the community editions of Mandrake were little better than betas and were very buggy. Have you been keeping up with updates from Mandrake Update?
|
|
|
11-01-2005, 07:42 PM
|
#4
|
Member
Registered: Mar 2005
Location: Ontario, Canada
Distribution: Mandrake 10.0/XP Dual Boot Desktop & Gentoo 2005.1 Laptop
Posts: 79
Rep:
|
Hey,
I've had a similar problem. However, instead of trying to increase permissions, I'm trying to restrict certain users from having read permissions to /mnt/windows but despite what the output tells me, the permissions don't actually change.
Unless I'm mistaken, the same principles should fix both our problems, so if you can help, please explain so as to help both Maxei and I.
Thanks,
Steve
|
|
|
11-01-2005, 08:46 PM
|
#5
|
Member
Registered: Mar 2005
Posts: 84
Original Poster
Rep:
|
Maybe it's a bug but not really a problem thanks 2 u all
Thanks for your comments folks, especially you, tkedwards.
You are probably right that there is a bug in my system, as I have not made updates....everything else seems to work nicely!
Well, I will not reduce my security level, it is too risky the trade off.
Actually, thanks for your tip: I dont have to boot again anymore. I followed your advice:
$sudo umount /mnt/windows
Password:
$sudo mount /mnt/windows
Password:
Then I see in Konqueror that the padlock in the /mnt/windows icon folder disapears and have access again. Not bad at all for typing a few lines!
Maxei DeVraie
|
|
|
11-03-2005, 12:24 AM
|
#6
|
Member
Registered: Oct 2005
Location: A safe distance from Detroit
Distribution: SuSE 10.0, Knoppix
Posts: 99
Rep:
|
You should be able to remount in a single command (in this case, as root):
mount -o remount /mnt/windows
-Alan
|
|
|
11-04-2005, 03:12 PM
|
#7
|
Member
Registered: Mar 2005
Posts: 84
Original Poster
Rep:
|
Alan,
I followed your method; I did not work for me.
I am using the two commands separately, first umount (because it IS mounted) , then I issue the mount command. This way it works.
[PS: I see that /mnt/windows gets locked again after, say half an hour since last time I fixed it. Definitely, this problem is caused by something within the system. Have to live with that. Good thing is that I dont have to go there but quite rarely. I just keep Windows 98 because there is nothing better that DVDSHRINK available in linux. To backup my DVD in Linux, I have used DVD::rip. It took more than 24 hours to get a movie into two CD as .avi ; Imagine! DVDShrink does a better job in ONLY 40 minutes in this same machine. Someone knows if a DVDShrink-like for Linux exists?].
Maxei Devraie
Last edited by Maxei; 11-04-2005 at 04:21 PM.
|
|
|
11-05-2005, 08:42 PM
|
#8
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
DVDshrink for linux: http://dvdshrink.sourceforge.net/
I've had some success with it but on some disks it has errors, whereas the Windows dvdshrink works.
|
|
|
All times are GMT -5. The time now is 06:05 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
|
|