LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-07-2016, 04:56 AM   #1
dwnthk
Member
 
Registered: May 2016
Location: Hong Kong
Distribution: Slackware 14.1 + Fluxbox
Posts: 68

Rep: Reputation: Disabled
I can't access my windows partition.


Hi guys,

When I installed my Linux, I mounted a windows partition, and named it /winfiles. The root has no problem accessing the winfiles. But user has no right to access the the winfiles directory.

The winfiles has "drwx------" permission. I tried to add permission to the directory but failed to do it.

The command
Quote:
chmod 711 winfiles
has done nothing.

What should I do so the user has permission to access /winfiles?

Thanks.

Last edited by dwnthk; 05-07-2016 at 05:02 AM.
 
Old 05-07-2016, 05:33 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
How did you mount the partition, tried -o umask=000 option?
 
Old 05-07-2016, 05:38 AM   #3
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 567

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
Hello,

Welcome to LQ.

How did you mount this partition? Is it an entry in fstab or do you mount it manually using root privileges?
 
Old 05-07-2016, 07:02 AM   #4
dwnthk
Member
 
Registered: May 2016
Location: Hong Kong
Distribution: Slackware 14.1 + Fluxbox
Posts: 68

Original Poster
Rep: Reputation: Disabled
It was first mounted during the Slackware installation. Then I don't need to do anything when I boot the system, and the directory is there.

Quote:
bash-4.2$ ls -l
total 112
drwxr-xr-x 2 root root 4096 5月 23 2009 bin
drwxr-xr-x 3 root root 4096 5月 4 14:24 boot
drwxr-xr-x 16 root root 5600 5月 7 17:20 dev
drwxr-xr-x 97 root root 12288 5月 7 17:36 etc
drwxr-xr-x 5 root root 4096 5月 3 22:33 home
drwxr-xr-x 7 root root 4096 10月 10 2013 lib
drwxr-xr-x 2 root root 4096 5月 3 06:11 lib64
drwx------ 2 root root 16384 5月 3 05:59 lost+found
drwxr-xr-x 16 root root 4096 5月 6 20:45 media
drwxr-xr-x 10 root root 4096 9月 26 2006 mnt
drwxr-xr-x 3 root root 4096 5月 6 19:59 opt
dr-xr-xr-x 189 root root 0 5月 8 2016 proc
drwx--x--- 21 root root 4096 5月 6 20:04 root
drwxr-xr-x 7 root root 140 5月 7 17:20 run
drwxr-xr-x 2 root root 12288 8月 20 2012 sbin
drwxr-xr-x 2 root root 4096 5月 3 06:11 srv
dr-xr-xr-x 13 root root 0 5月 8 2016 sys
drwxrwxrwt 13 root root 4096 5月 7 19:59 tmp
drwxr-xr-x 18 root root 4096 5月 7 17:34 usr
drwxr-xr-x 17 root root 4096 3月 3 2012 var
drwx------ 1 root root 20480 5月 1 11:28 winfiles
 
Old 05-07-2016, 07:41 AM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Could you show content of /etc/fstab please (the line with '/winfiles')?
 
Old 05-07-2016, 07:53 AM   #6
dwnthk
Member
 
Registered: May 2016
Location: Hong Kong
Distribution: Slackware 14.1 + Fluxbox
Posts: 68

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by keefaz View Post
Could you show content of /etc/fstab please (the line with '/winfiles')?
Something like this?

Quote:
bash-4.2# cat fstab
/dev/sda5 swap swap defaults 0 0
/dev/sda6 / ext4 defaults 1 1
/dev/sda7 /home ext4 defaults 1 2
/dev/sda2 /winfiles ntfs-3g fmask=177,dmask=077 1 0
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro,comment=x-gvfs-show 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
That's how I think I should chmod the directory:
Quote:
bash-4.2# ls -l | grep win*
drwx------ 1 root root 20480 5月 1 11:28 winfiles
bash-4.2# chmod 711 winfiles
bash-4.2# ls -l | grep win*
drwx------ 1 root root 20480 5月 1 11:28 winfiles
bash-4.2#

Last edited by dwnthk; 05-07-2016 at 08:15 AM.
 
Old 05-07-2016, 08:33 AM   #7
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Quote:
Originally Posted by dwnthk View Post
Something like this?


That's how I think I should chmod the directory:
Change the fstab line to:

Code:
/dev/sda2        /winfiles       ntfs-3g     fmask=111,dmask=000 1   0
Then as root, umount /winfiles, mount /winfiles
 
1 members found this post helpful.
Old 05-07-2016, 09:54 AM   #8
dwnthk
Member
 
Registered: May 2016
Location: Hong Kong
Distribution: Slackware 14.1 + Fluxbox
Posts: 68

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by keefaz View Post
Change the fstab line to:

Code:
/dev/sda2        /winfiles       ntfs-3g     fmask=111,dmask=000 1   0
Then as root, umount /winfiles, mount /winfiles
I don't know what these figures mean. But it works. (I will google fmask and dmask later.)
Thanks. I am appreciated.
 
  


Reply



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
cannot access my windows partition randell6564 Ubuntu 20 06-04-2006 04:13 PM
How can I access files in my Windows 98 partition from my Linux partition, /w BASH? Fabyfakid Linux - Newbie 4 09-17-2004 11:05 PM
Can't Access Windows Partition nostrum Linux - Newbie 8 06-18-2004 11:17 PM
Access to windows partition? DeadlySin3 Linux - Newbie 2 05-05-2003 10:46 AM
Again, how to access windows partition MrPolite Linux - General 26 06-29-2002 02:34 AM

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

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