can't create files in windows partition.
Hi,
I have Suse 11.2 installed. In Dolphin file manager I can see read files in my windows partition. But I cant create or delete any of these files as a user. I opened Dolphin as root and changed the permission rights of this windows folder so that all groups and users can view and Modify content. But when I try to create something I get the message access denied, "check your permission rights". What am I doing wrong? And how can I change these permission right for my user in console mode? Maybe that will work? Thanks in advance. |
What type of file system is your windows partition? If it's NTFS, it will be read-only.
|
I suspect you do not have the fuse ntfs-3g drivers what are required for writing to an NTFS partition. These drivers should be available off of rpmforge but I am not certain about how their installation goes on Suse.
|
Please, open a terminal, type this command and paste the output here:
Code:
mount |
OK,
Now I have installed ntfs-3g and in 'system info' I can see that the filesystem of my windows partitions are called now "ntfs-3g". but I still can't write to them? Do I have to still activate ntfs-3g or something? please help. |
Quote:
Code:
korbes@linux-b8pz:~> mount |
Code:
/dev/sda1 on /windows/C type fuseblk (rw,noexec,nosuid,nodev,allow_other,default_permissions,blksize=4096) Code:
touch /windows/C/foo |
Not familiar with Suse, so I'm not sure what default_permissions means. But this definitely is a permission problem. Can you show us your fstab?
Quote:
Also might help showing us the permission in the Windows partition. Quote:
|
And normally I would not be trying to write to the root of any file system. I'd try writing to some sub directory.
ALSO: ls -ld /windows/C would be helpful too. That would show the permissions on the top level directory (what I'm calling the root of the file system). |
Quote:
Setting an umask might help, setting the UID and GID as mount options might as well. I have not that much experience with Windows stuff these days so I can't really be sure. Quote:
Quote:
http://pagesperso-orange.fr/b.andre/permissions.html The key point is to understand how this works in conjunction with umask, gid and uid. |
The root directory in all systems should be treated as special, meiner Meinung nach (imho). I don't like anyone but root to write to the top most directories of a partition and when I create immediate sub dirs I create them with root and then assign them to some standard user. And in windows in particular, over the years, they have tried to make the root directory special (especially the C drive) to avoid attacks. It's good practice, and I'd be surprised if the windows system isn't trying to enforce extra restrictions on the top level directory.
|
AND YES: VFAT is another story. It's wide open, but not NTFS.
|
You can configure how your NTFS partitions are mounted in YaST2's Disk module.
You can also edit your /etc/fstab file and add the "uid=<yourusername>,gid=<yourusername>". Also use the "dmask=" option and "fmask=" option to control the permissions. Here is an example: Code:
/dev/disk/by-id/ata-TOSHIBA_MK2049GSY_48CYT01OT-part1 /windows/C ntfs-3g users,noauto,uid=korbis,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 |
setting uid and umask appropriately is essential to mount rw on ntfs.
My fstab entry looks like this: Code:
UUID=62AC6C71AC6C41A1 /home/jschmidt/windows ntfs user,noauto,allow_other,uid=1000,gid=100,umask=22,noatime 0 2 EDIT: jschiwal beat me :( |
Samba
And if this happens to be a network drive (it's more likely something on your local system), Samba is much easier than all of this.
|
Ok thank you all guys for your reply. I think it is a permission problem too cause as root I am able to write to /windows/E.
Quote:
Code:
korbes@linux-b8pz:~> cat /etc/fstab Code:
korbes@linux-b8pz:~> ls -l /windows/E So please tell me what to do from here on? |
You can either add a "uid=<your_username>" option to change the owner of the mounted filesystem allowing you full access. Or you can change the value of the 2nd digit in the fmask and dmask options.
"fmask=113,dmask=002" |
Masking
Here are some places you can get more info about "masking" (umask, fmask, etc):
http://www.cyberciti.biz/tips/unders...lue-usage.html http://bodhizazen.net/Tutorials/Understandingfstab.pdf |
All times are GMT -5. The time now is 11:28 PM. |