LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-19-2005, 11:30 AM   #1
jstars
Member
 
Registered: Jun 2005
Location: Edmonton, Canada
Distribution: SuSE 10
Posts: 51

Rep: Reputation: 15
Problem with user accessing USB Harddrive


I originally sought help with this at suseforums.net but without successful solution. My problem is that I have a USB external harddrive that mounts successfully but does not give users access (only root). The device is dev/sda1. The drive is formatted as NTFS which shouldn't pose a problem for read access -- yet despite my attempts to change the permissions, only root has read access.

It was suggested this had something to do with the subfs (which I am not clear on). Is there a solution to this so users can have access to this drive when it is plugged in?

See my attempt to access below in the /media directory. "BACKUP" is the volume label for the USB HD in question:
Code:
alfred@linux:~> cd /media
alfred@linux:/media> ls -l
total 0
drwxrwxrwx  1 root root  0 2005-06-19 10:19 BACKUP
drwxr-xr-x  2 root root 48 2005-03-23 08:30 bmp_audio_cd
drwxr-xr-x  2 root root 48 2005-06-12 08:29 cdrecorder
drwxr-xr-x  2 root root 48 2005-06-12 08:29 cdrom
drwxrwxrwx  1 root root  0 2005-06-19 09:32 floppy
drwxr-xr-x  2 root root 48 2005-06-12 22:39 SU930_002
drwxr-xr-x  2 root root 48 2005-06-12 09:27 SU930_003
alfred@linux:/media> cd BACKUP
alfred@linux:/media/BACKUP> ls
/bin/ls: .: Permission denied
 
Old 06-20-2005, 03:53 AM   #2
randomx
Member
 
Registered: Feb 2003
Location: Hawaii
Distribution: Debian
Posts: 130

Rep: Reputation: 16
permissions

Can you change the permissions to that directory?

maybe a chown/chgrp/chmod command combo?...just a thought...
 
Old 06-20-2005, 04:09 AM   #3
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
Post the contents of your /etc/fstab file
 
Old 06-20-2005, 09:40 PM   #4
jstars
Member
 
Registered: Jun 2005
Location: Edmonton, Canada
Distribution: SuSE 10
Posts: 51

Original Poster
Rep: Reputation: 15
my /etc/fstab is as follows:

Code:
/dev/hda3            /                    reiserfs   acl,user_xattr        1 1
/dev/hda1            /windows/C           ntfs       ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdb1            /windows/D           vfat       users,gid=users,umask=0002,utf8=true 0 0
/dev/sda1            /windows/E           ntfs       ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hda2            swap                 swap       pri=42                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
proc                 /proc                proc       defaults              0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
sysfs                /sys                 sysfs      noauto                0 0
/dev/cdrecorder      /media/cdrecorder    subfs      noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/cdrom           /media/cdrom         subfs      noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0             /media/floppy        subfs      noauto,fs=floppyfss,procuid,nodev,nosuid,sync 0 0
To answer the previous poster I haven't tried changing permissions on anything as my understanding is that the permissions say I should have access. Either way I am not too sure what files I should change permissions on.
 
Old 07-17-2005, 01:55 PM   #5
Ben Sytko
LQ Newbie
 
Registered: Jan 2002
Location: Grand Rapids, MI
Posts: 27

Rep: Reputation: 15
I am having the exact same problem, using Suse 9.3 as well. Did you ever manage to solve it?
 
Old 07-20-2005, 11:00 PM   #6
jstars
Member
 
Registered: Jun 2005
Location: Edmonton, Canada
Distribution: SuSE 10
Posts: 51

Original Poster
Rep: Reputation: 15
Unfortunately no luck. See a thread in another forum that I posted which suggested complaining to SuSE about an odd subfs (which I don't know much about).
 
Old 07-29-2005, 08:12 AM   #7
IamSpOOk
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Rep: Reputation: 1
I'm working this as a possible udev permission issue. Refer to the other thread mentioned above.
Still working on it.

But another avenue to look at is how the hell the device gets mount options. It sure doesn't
seem to be from /etc/fstab. In fact, there is some code, in /etc/hotplug/hotplug.subfs.functions
and in there, there are 'if' blocks with matches for subfs types and then code to set the
fsoptions.

use the command:
mount
to see the options that were used to mount a devide. They don't match what's in fstab
for the usb device.

I tried adding 'user' as described in
man mount
to that code but it does not seem to get executed. Additionally, there is a worrysome comment
at the top of that file:

# this options are not used currently (SUSE 9.3)
: ${HOTPLUG_DO_MOUNT:=yes}
: ${HOTPLUG_MOUNT_TYPE:=subfs}
: ${HOTPLUG_MOUNT_SYNC:=yes

For those of you who want a workaround - see the other thread in the other forum mentioned in earlier post.
 
Old 07-29-2005, 08:18 AM   #8
IamSpOOk
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Rep: Reputation: 1
See also :

http://forums.suselinuxsupport.de/in...4&#entry103394

That's the thread that I thought was referred to earlier.
 
Old 07-29-2005, 02:22 PM   #9
ghight
Member
 
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Rep: Reputation: 30
This isn't pretty but the easiest thing you can do is manually mount the drive in /mnt/. This may involve umounting it from media when it's autodetected, but you can then remounting it with the permissions and ownership of your choice to /mnt/usb_drive or something like that. It works for me.
 
  


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
Accessing 2nd Harddrive D4ve G Linux - Newbie 3 07-19-2005 12:09 AM
Problem accessing Gnome like normal user ArchArael Linux - Software 4 04-29-2005 10:50 AM
accessing a windows harddrive with DSL buddamonk DamnSmallLinux 15 01-15-2005 09:45 AM
Problem with external USB harddrive and Suse 9.1 Tommy_Taifun Linux - Hardware 4 05-24-2004 04:55 AM
problem accessing fat drive as a user thegeekster Linux - Newbie 6 12-09-2003 10:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 09:03 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