Go Back   openSUSE Forums > Archives > SLS Archives > ARCHIVES - SuSE Linux > ARCHIVES - General Questions
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - General Questions If your question doesn't fit in any other category below ask in here.

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-May-2008, 12:58
pab
Guest
 
Posts: n/a
Default

Mounting USB memory sticks

This has probably been dealt with, but I can't find an answer that I can understand

I would like to be able to have the following behavior
- stick in the usb stick
- log in as root (not on console, but e.g. somewhere remote)
- mount the usb stick for any user I want

Now the system does:
- mounts automatically for whoever is logged on console (sometimes /dev/sdb1, sometimes /dev/sdc1 ? why?)
- root cannot change the mount (chown chmod)

I have read that hal(d) is responsible, or udev, that /etc/fstab should be modified (or not)
etc. etc. and don't get any clear picture of what's going on.

any help is appreciated

thanks

Philippe

philippe.bopp@u-bordeaux1.fr


  #2 (permalink)  
Old 09-May-2008, 15:35
thestig
Guest
 
Posts: n/a
Default

Quote:
Mounting USB memory sticks

This has probably been dealt with, but I can't find an answer that I can understand

I would like to be able to have the following behavior
- stick in the usb stick
- log in as root (not on console, but e.g. somewhere remote)
- mount the usb stick for any user I want

Now the system does:
- mounts automatically for whoever is logged on console (sometimes /dev/sdb1, sometimes /dev/sdc1 ? why?)
- root cannot change the mount (chown chmod)

I have read that hal(d) is responsible, or udev, that /etc/fstab should be modified (or not)
etc. etc. and don't get any clear picture of what's going on.

any help is appreciated

thanks

Philippe

philippe.bopp@u-bordeaux1.fr
[/b]
what file system is the usb stick? fat32 and ntfs do not support (as far as i'm aware) permissions like linux file systems (eg ext3). so if a format is not on the cards, perhaps encrypt the data with on the fly encryption with something like truecrypt if that is possible to install on machines where stick is needed.
  #3 (permalink)  
Old 10-May-2008, 07:28
pab
Guest
 
Posts: n/a
Default

Quote:
what file system is the usb stick? fat32 and ntfs do not support (as far as i'm aware) permissions like linux file systems (eg ext3). so if a format is not on the cards, perhaps encrypt the data with on the fly encryption with something like truecrypt if that is possible to install on machines where stick is needed.
[/b]
The mount as performed automatically by hald/udev/or whomever
looks like this:

/dev/sdb1 on /media/KINGSTON type vfat (rw,nosuid,nodev,noatime,flush,uid=1000,utf8,short name=lower)

Which is fine and works fine as long as the user who wants to use the stick is on the console.

The trick (which I don't know) would be to instruct whichever daemon.... performs the mount NOT to mount
automatically (and irrevocably!) for the console user, but either to prompt for the uid which will use the
device, or at least allow root to chown/chmod. In other wordsa, I guess: Who mounts, and where are the
mount parameters listed above set?

Philippe

  #4 (permalink)  
Old 10-May-2008, 11:43
broch
Guest
 
Posts: n/a
Default

hal mounts
you can't chmod dynamic mount points
sdb1, sdc1 and so on correspond to specific usb ports, so specific port will always be sdb1 while another will always be assigned to sdc1
create mount points and add to fstab
do not specify fs in fstab obviously
if you don't want hal, edit udev rules
you can disable automounting in KDE and gnome, create symnink on the desktop to allow users access mounted usb media, so after device is connected, one can easily access it
otherwise create mountpoints in whatever dir you want

file system really does not matter and it should not be mixed with fs rights. This is quite common mistake.

use group management, add user st the storage group to vive them right to manage usb media
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2