LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Unlock folder (drive) & change permissions (https://www.linuxquestions.org/questions/suse-opensuse-60/unlock-folder-drive-and-change-permissions-448909/)

VIR3NT 05-26-2006 07:51 PM

Unlock folder (drive) & change permissions
 
I have a windows NTFS drive that i'm trying to mount. All my other windows drives mount fine except this one (the one with windows installed on it). It mounts fine, but when i try to open it i get "You do not have enough permissions to read file:///windows/C. The odd thing is once i mount it, it does not show up in fstab or mtab, even though it says its mounted in konqueror. It is currently set as Locked Folder, owner: root - root, dr-x------ and i want it to be dr-xr-xr-x and unlocked.
Thanks

bigrigdriver 05-27-2006 06:31 AM

Try this:

Su to root.

Then, chmod -R ugo+rx /windows/C.

VIR3NT 05-27-2006 10:50 AM

k, now its unlocked, but now when I try to enter the folder it says "Could not enter folder /windows/C"

crazibri 05-27-2006 12:48 PM

Mine works perfectly when I installed Suse 10.0. Here's what my setup looks like:

Me@COMP:~> l /windows/
total 17
drwxr-xr-x 4 root root 96 2005-11-24 07:04 ./
drwxr-xr-x 23 root root 544 2006-05-27 01:29 ../
dr-xr-xr-x 1 root users 8192 2006-05-19 22:49 C/
drwxrwxr-x 7 root users 8192 1969-12-31 16:00 D/

Me@COMP:~> cat /etc/fstab | grep windows
/dev/hda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hda5 /windows/D vfat users,gid=users,umask=0002,utf8=true 0 0

Your "/dev/hd..." will probably be different.
Hope this helps! :)

manishsingh4u 05-27-2006 01:02 PM

Okay open /etc/fstab file and add this line to it. Replace /dev/hda1 and /media/windows with your device and directory names.
Code:

/dev/hda1 /media/windows ntfs ro,umask=0222,user,gid=users 0 0
then run this command
Code:

umount -at nfts (if u have mounted it already, unmount it)
mount -at nfts

Let me know if it works.

VIR3NT 05-27-2006 06:37 PM

still doesent work. This is what (part of) my fstab looks like now:
Code:

/dev/hdb2            /                    reiserfs  acl,user_xattr        1 1
/dev/hdb5            /windows/D          ntfs      ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hda1            /windows/C          ntfs
ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdb6            /windows/T          vfat
ro,users,gid=users,umask=0002,nls=utf8 0 0

hda1 is the drive i am having trouble with. hdb5 is also a windows drive that i store my movies on and that drive works fine. I used the same parameters as hdb5 with hdb1 but hdb1 still has problems and give me the "Could not open folder /windows/C"

Now that I messed around with the parameters I can view and access the files on hda1 while logged on as root.

The permissions are still set as dr-x------ while the working windows drive (hdb5) is dr-xr-xr-x. I'm guessing this is the problem, and the working hdb5 has Owner: root - users while hda1 is Owner: root - root


All times are GMT -5. The time now is 02:22 PM.