LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-28-2010, 02:13 PM   #1
jamasoo
Member
 
Registered: Jan 2007
Posts: 97

Rep: Reputation: 16
Slackware and USB


Hello,

I am using Slackware 13.0 and i have managed to work with my USB pen-drive as root but i cannot do it as a normal user. Can you please help?

Regards,
M

Last edited by jamasoo; 04-28-2010 at 02:14 PM.
 
Old 04-28-2010, 02:19 PM   #2
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
Look at your /etc/fstab file, and where your pendrive is and look at the options section. Try changing it from owner to users, and ro to rw and see if that helps.
 
Old 04-28-2010, 02:33 PM   #3
jamasoo
Member
 
Registered: Jan 2007
Posts: 97

Original Poster
Rep: Reputation: 16
Well, i do not have such entry line, here is my /etc/fstab :


/dev/hda1 swap swap defaults 0 0
/dev/hda2 / ext4 defaults 1 1
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 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

Last edited by jamasoo; 04-28-2010 at 02:35 PM.
 
Old 04-28-2010, 02:36 PM   #4
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
Oh yea, probably because of udev,

If you are running Slackware-13; did you also add your username in the /etc/group ?

I think there should be a udev entry in there, also don't forgot to add yourself to the wheel group.

Hope that helps.
 
Old 04-28-2010, 02:39 PM   #5
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Are you in the "plugdev" and/or "cdrom" groups?
 
Old 04-28-2010, 02:59 PM   #6
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
In fact, what is the output of the command 'groups'?
 
Old 04-28-2010, 03:26 PM   #7
jamasoo
Member
 
Registered: Jan 2007
Posts: 97

Original Poster
Rep: Reputation: 16
users floppy audio video cdrom
 
Old 04-28-2010, 03:34 PM   #8
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Well that explains a lot.

Some extra groups you will find it useful to be in:

plugdev power netdev scanner

plugdev: for usb sticks
power: for shutdown and other power operations
netdev: for wicd (if you have wifi)
scanner: well self-explanatory

You can add yourself to these groups by (as root)

usermod -G plugdev,power,netdev,scanner <username>

Note there are no spaces within the group list.

You will need to logout of X and all consoles after using this command so that the groups work.

Edit: A hint - when creating a new user press up-arrow at the extra groups prompt and the list will be populated.

Last edited by dive; 04-28-2010 at 03:37 PM.
 
Old 04-28-2010, 04:11 PM   #9
jamasoo
Member
 
Registered: Jan 2007
Posts: 97

Original Poster
Rep: Reputation: 16
groups is now users floppy audio video cdrom plugdev power netdev


but i got the same message:

Failed to mount "1G Removable Volume".

Rejected send message, 1 matched rules; type="method_call", sender=":1.30" (uid=1001 pid=6722 comm="exo-mount -n -h /org/freedesktop/Hal/devices/volum") interface="org.freedesktop.Hal.Device.Volume" member="Mount" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=2915 comm="/usr/sbin/hald --daemon=yes ")).
 
Old 04-28-2010, 04:16 PM   #10
Thursapr
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 44

Rep: Reputation: 18
May be reboot the system first?
 
Old 04-28-2010, 04:20 PM   #11
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
/etc/rc.d/rc.messagebus reload
/etc/rc.d/rc.hald restart

and restart X

Last edited by dive; 04-28-2010 at 04:22 PM.
 
Old 04-28-2010, 04:23 PM   #12
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Quote:
Originally Posted by Thursapr View Post
May be reboot the system first?
Hopefully we can do it by restarting/loading hald, messagebus and maybe udev. There isn't the need to reboot usually but ymmv.
 
Old 04-28-2010, 04:24 PM   #13
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
And check 'dmesg | tail' for errors.
 
Old 04-28-2010, 04:37 PM   #14
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by dive View Post
You can add yourself to these groups by (as root)

usermod -G plugdev,power,netdev,scanner <username>
Actually, I'd do this as root instead:
Code:
for x in plugdev npower netdev scanner; do gpasswd -a <username> ${x}; done
Since the usermod command that you gave would remove the user from any other secondary groups to which he currently belongs.
 
Old 04-28-2010, 05:09 PM   #15
jamasoo
Member
 
Registered: Jan 2007
Posts: 97

Original Poster
Rep: Reputation: 16
bash-3.1# /etc/rc.d/rc.messagebus reload
Reloading system message bus configuration...
bash-3.1# /etc/rc.d/rc.hald restart
Starting HAL daemon: /usr/sbin/hald --daemon=yes
 
  


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
Conflicting USB mouse & usb pendrive on Slackware 11.0 aruntom55 Slackware 3 08-26-2007 01:34 AM
HP Deskjet (USB) & CUPS & Slackware 9.1: Unable to open USB device "usb:/dev/usb/lp0&qu arnostienen Slackware 2 01-29-2004 03:22 PM
slackware 9.1 USB mouse and other usb devices not working jimMC Linux - Hardware 11 01-24-2004 10:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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