Can't use removable storage media with Salix 14.0

You have a problem with Salix? Post here and we'll do what we can to help.
djemos
Salix Warrior
Posts: 1465
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Can't use removable storage media after installing VBox

Post by djemos »

also check if in /etc/sudoers file the following line exists.

Code: Select all

 %users  ALL=(ALL) ALL, NOPASSWD: /bin/umount, /bin/mount
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Can't use removable storage media after installing VBox

Post by zAchAry »

djemos wrote:also check if in /etc/sudoers file the following line exists.

Code: Select all

 %users  ALL=(ALL) ALL, NOPASSWD: /bin/umount, /bin/mount

Code: Select all

# cat /etc/sudoers
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission errors
# that prevent sudo from running.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification

# Runas alias specification

# User privilege specification
root	ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
# %wheel	ALL=(ALL) ALL

# Same thing without a password
# %wheel	ALL=(ALL) NOPASSWD: ALL

# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now

/etc/group

Code: Select all

root:x:0:root
bin:x:1:root,bin
daemon:x:2:root,bin,daemon
sys:x:3:root,bin,adm
adm:x:4:root,adm,daemon
tty:x:5:
disk:x:6:root,adm
lp:x:7:lp,zack
mem:x:8:
kmem:x:9:
wheel:x:10:root,zack
floppy:x:11:zack
mail:x:12:mail
news:x:13:news
uucp:x:14:uucp
man:x:15:
dialout:x:16:uucp
audio:x:17:zack
video:x:18:zack
cdrom:x:19:zack
games:x:20:
slocate:x:21:
utmp:x:22:
smmsp:x:25:smmsp
tape:x:26:
mysql:x:27:
rpc:x:32:
sshd:x:33:sshd
gdm:x:42:
shadow:x:43:
ftp:x:50:
oprofile:x:51:
apache:x:80:
messagebus:x:81:
haldaemon:x:82:
plugdev:x:83:zack
power:x:84:zack
netdev:x:86:zack
pop:x:90:pop
scanner:x:93:zack
nobody:x:98:nobody
nogroup:x:99:
users:x:100:
console:x:101:
vboxusers:x:1000:zack
tor:x:220:
privoxy:x:206:
avahi:x:214:
pulse:x:216:

Image
Help to make Slackware easier Donate to Salix
djemos
Salix Warrior
Posts: 1465
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Can't use removable storage media after installing VBox

Post by djemos »

So add the line

Code: Select all

 %users  ALL=(ALL) ALL, NOPASSWD: /bin/umount, /bin/mount
in /etc/sudoers file, so users belong to users group can mount devices.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Can't use removable storage media after installing VBox

Post by mimosa »

The file itself tells you to edit it by typing

Code: Select all

#visudo
I don't know whether this applies to Salix, but probably.
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Can't use removable storage media after installing VBox

Post by zAchAry »

How do I add the following line

Code: Select all

%users  ALL=(ALL) ALL, NOPASSWD: /bin/umount, /bin/mount
with visudo in an appropriate fashion?
Image
Help to make Slackware easier Donate to Salix
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Can't use removable storage media after installing VBox

Post by mimosa »

As root, type visudo. Either uncomment or paste in the line: select it in your browser, place the cursor in the desired location, and do

SHIFT + middleclick

I'd been using vim for quite a while before I discovered about shift + middleclick to access the clipboard. ;)
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Can't use removable storage media after installing VBox

Post by zAchAry »

Still not working.

Code: Select all

# cat /etc/sudoers
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission errors
# that prevent sudo from running.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification

# Runas alias specification

# User privilege specification
root	ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
# %wheel	ALL=(ALL) ALL
%users  ALL=(ALL) ALL, NOPASSWD: /bin/umount, /bin/mount

# Same thing without a password
# %wheel	ALL=(ALL) NOPASSWD: ALL

# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now

(Save Visudo and exit)
Image
Help to make Slackware easier Donate to Salix
djemos
Salix Warrior
Posts: 1465
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Can't use removable storage media after installing VBox

Post by djemos »

As i understand it is not a VirtualBox problem but
To make things simpler for find a solution i suggest to remove VirtualBox.

as root type

Code: Select all

cd /opt/VirtualBox 
sh uninstall.sh
(you can install it later) and try to mount removable media again.
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Can't use removable storage media with Salix 14.0

Post by zAchAry »

djemos wrote:As i understand it is not a VirtualBox problem but
To make things simpler for find a solution i suggest to remove VirtualBox.

as root type

Code: Select all

cd /opt/VirtualBox 
sh uninstall.sh
(you can install it later) and try to mount removable media again.
I still can't access removable storage media. VBox is not the problem, as it seems.
Image
Help to make Slackware easier Donate to Salix
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Can't use removable storage media with Salix 14.0

Post by mimosa »

I wonder if this is in any way related to the problems I experienced with Gmountman when running hand-rolled tiling WMs: unless I call Gmountman through dbus-launch, it only sees fd0 (the non-existent floppy drive).
Post Reply