Slackware This Forum is for the discussion of Slackware Linux.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
04-28-2010, 02:13 PM
#1
Member
Registered: Jan 2007
Posts: 97
Rep:
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 .
04-28-2010, 02:19 PM
#2
Senior Member
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180
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.
04-28-2010, 02:33 PM
#3
Member
Registered: Jan 2007
Posts: 97
Original Poster
Rep:
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 .
04-28-2010, 02:36 PM
#4
Senior Member
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180
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.
04-28-2010, 02:39 PM
#5
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858
Are you in the "plugdev" and/or "cdrom" groups?
04-28-2010, 02:59 PM
#6
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep:
In fact, what is the output of the command 'groups'?
04-28-2010, 03:26 PM
#7
Member
Registered: Jan 2007
Posts: 97
Original Poster
Rep:
users floppy audio video cdrom
04-28-2010, 03:34 PM
#8
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep:
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 .
04-28-2010, 04:11 PM
#9
Member
Registered: Jan 2007
Posts: 97
Original Poster
Rep:
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 ")).
04-28-2010, 04:16 PM
#10
Member
Registered: Apr 2009
Distribution: Slackware
Posts: 44
Rep:
May be reboot the system first?
04-28-2010, 04:20 PM
#11
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep:
/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 .
04-28-2010, 04:23 PM
#12
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep:
Quote:
Originally Posted by
Thursapr
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.
04-28-2010, 04:24 PM
#13
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep:
And check 'dmesg | tail' for errors.
04-28-2010, 04:37 PM
#14
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858
Quote:
Originally Posted by
dive
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.
04-28-2010, 05:09 PM
#15
Member
Registered: Jan 2007
Posts: 97
Original Poster
Rep:
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
All times are GMT -5. The time now is 09:39 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News