Page 2 of 3
Re: Can't use removable storage media after installing VBox
Posted: 7. Jan 2013, 08:29
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
Re: Can't use removable storage media after installing VBox
Posted: 7. Jan 2013, 14:47
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:
Re: Can't use removable storage media after installing VBox
Posted: 7. Jan 2013, 17:41
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.
Re: Can't use removable storage media after installing VBox
Posted: 7. Jan 2013, 18:31
by mimosa
The file itself tells you to edit it by typing
I don't know whether this applies to Salix, but probably.
Re: Can't use removable storage media after installing VBox
Posted: 7. Jan 2013, 18:43
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?
Re: Can't use removable storage media after installing VBox
Posted: 7. Jan 2013, 20:05
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.

Re: Can't use removable storage media after installing VBox
Posted: 7. Jan 2013, 21:35
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)
Re: Can't use removable storage media after installing VBox
Posted: 8. Jan 2013, 10:57
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.
Re: Can't use removable storage media with Salix 14.0
Posted: 8. Jan 2013, 19:17
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.
Re: Can't use removable storage media with Salix 14.0
Posted: 8. Jan 2013, 20:04
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).