LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-01-2005, 10:29 AM   #1
Maxei
Member
 
Registered: Mar 2005
Posts: 84

Rep: Reputation: 15
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
 
Old 11-01-2005, 05:26 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,435
Blog Entries: 7

Rep: Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959
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
 
Old 11-01-2005, 05:48 PM   #3
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
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?
 
Old 11-01-2005, 07:42 PM   #4
43r05p4c3
Member
 
Registered: Mar 2005
Location: Ontario, Canada
Distribution: Mandrake 10.0/XP Dual Boot Desktop & Gentoo 2005.1 Laptop
Posts: 79

Rep: Reputation: 15
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
 
Old 11-01-2005, 08:46 PM   #5
Maxei
Member
 
Registered: Mar 2005
Posts: 84

Original Poster
Rep: Reputation: 15
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
 
Old 11-03-2005, 12:24 AM   #6
ahedler
Member
 
Registered: Oct 2005
Location: A safe distance from Detroit
Distribution: SuSE 10.0, Knoppix
Posts: 99

Rep: Reputation: 17
You should be able to remount in a single command (in this case, as root):

mount -o remount /mnt/windows

-Alan
 
Old 11-04-2005, 03:12 PM   #7
Maxei
Member
 
Registered: Mar 2005
Posts: 84

Original Poster
Rep: Reputation: 15
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.
 
Old 11-05-2005, 08:42 PM   #8
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
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.
 
  


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
How to make changes to fstab permanent on FC4? Hungry ghost Fedora 7 07-01-2005 08:52 AM
cant access windows partition with mnt or editing fstab mayasedai Linux - General 13 03-17-2005 12:17 PM
How to put a permanent entry in fstab for usb pen drive zulfilee Linux - General 4 08-31-2004 11:36 PM
mount -t //192.168.0.1/mnt /mnt/windows -o password='' generates error broadsoft Linux - Networking 3 08-07-2003 04:51 AM
installing problems: "cannot create mnt/etc/fstab" bullen Slackware 2 08-03-2002 09:24 AM

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

All times are GMT -5. The time now is 06:05 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
Open Source Consulting | Domain Registration