LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices



Reply
 
Search this Thread
Old 05-26-2006, 08:51 PM   #1
VIR3NT
Member
 
Registered: Sep 2005
Posts: 58

Rep: Reputation: 15
Cool 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
 
Old 05-27-2006, 07:31 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
Try this:

Su to root.

Then, chmod -R ugo+rx /windows/C.
 
Old 05-27-2006, 11:50 AM   #3
VIR3NT
Member
 
Registered: Sep 2005
Posts: 58

Original Poster
Rep: Reputation: 15
k, now its unlocked, but now when I try to enter the folder it says "Could not enter folder /windows/C"
 
Old 05-27-2006, 01:48 PM   #4
crazibri
Member
 
Registered: Mar 2004
Location: Orange County, CA
Distribution: OS X, SuSE, RH, Debian, XP
Posts: 377

Rep: Reputation: 31
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!
 
Old 05-27-2006, 02:02 PM   #5
manishsingh4u
Member
 
Registered: Oct 2005
Location: Pune, India
Distribution: OpenSUSE 11.0
Posts: 422

Rep: Reputation: 30
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.
 
Old 05-27-2006, 07:37 PM   #6
VIR3NT
Member
 
Registered: Sep 2005
Posts: 58

Original Poster
Rep: Reputation: 15
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
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
unlock a locked folder in Suse 10.0 dcg757s Linux - Newbie 6 11-11-2005 05:54 PM
FOLDER permissions change automatically Echo Kilo Linux - Newbie 5 08-21-2005 04:09 AM
Absolutely CANNOT change folder permissions help! leemoreau Ubuntu 4 04-26-2005 11:30 PM
Script to change folder permissions waitingforOES Linux - Newbie 1 03-07-2005 02:34 PM
Change folder permissions eggoz Linux - Newbie 2 03-17-2003 02:35 AM


All times are GMT -5. The time now is 02:21 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration