Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Change permission on /windows partition

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
StanTheMan
Posts: 114
Joined: 2009-03-04 18:02
Location: British Columbia

Re: Change permission on /windows partition

#16 Post by StanTheMan »

mindyourmatter.

Most new distros use 'plugdev' as ggroup to access NTFS. If it is not a default in yours, then you can create it with the UserGroups manager.

To edit system files.
If you have Gnome
Terminal
\su
(root password)
gedit

This normally will load gedit and you can navigate to your text file.

If you are using KDE , you may have to launch ' nano ' which is a text exitor
or if it is not installed, install it with APT
apt-get install nano

or install emacs

User avatar
aspnair
Posts: 1247
Joined: 2009-06-18 12:27
Location: Twitter: @anand_sivaram

Re: Change permission on /windows partition

#17 Post by aspnair »

@jheaton5

I am not sure whether chown works properly in ntfs/fat. Because that should be supported by the underlying filesystem, so it depends upon
the implementation of ntfs/fat filesystems.
Compressed Air Energy Storage, Entropy and Efficiency
http://saurorja.org/2012/06/18/compress ... fficiency/

User avatar
jheaton5
Posts: 1488
Joined: 2008-08-20 01:40
Location: Newnan, GA, USA

Re: Change permission on /windows partition

#18 Post by jheaton5 »

aspnair wrote:@jheaton5

I am not sure whether chown works properly in ntfs/fat. Because that should be supported by the underlying filesystem, so it depends upon
the implementation of ntfs/fat filesystems.
Thanks
debian sid

mindyourmatter
Posts: 6
Joined: 2010-07-02 07:55

Re: Change permission on /windows partition

#19 Post by mindyourmatter »

aspnair wrote:reply to jheaton5's question also.

Initially I was thinking that mindyourmatter is using ntfs. Anyway it is applicable to fat also.
From "man mount" from the options of ntfs/fat, you could include the following.
uid=value, gid=value, umask = value, with this you could set the ownership/group and umask of the filesystem.
This is what typically you need to do in your fstab.
This is what I mean to give access to the main user (uid 1000) of debian. Update your fstab with the values you need like below.

/

Code: Select all

dev/hda8 /windows vfat utf8,uid=1000,gid=1000,umask=0022  0 0
Well, with the aid of gedit opened through the terminal with root privileges, I edited /ect/fstab to include the 'uid,gid,umask' options in the code above and voila. It worked!!! :D Thank you very very much you guys!
aspnair wrote:@mindyourmatter
your first post says that the windows partition is /dev/hda5, but the fstab is showiing it as /dev/hda8.
And ya, I simplified things at first. Guess it backfired :mrgreen:

Post Reply