Debian Hardware :: Mounting Drives As Normal User - GUI Apps
May 13, 2015
I have two internal partitions that I auto-mount at startup using fstab. This works fine & I can unmount/mount as a normal user no problem in the terminal (umount /dev/sdb1) but using thunar (or nautilus) I receive a message saying "not authorised to perform operation" (I use the DWM window manager, in gnome it pops up with a password prompt).
If I open thunar as root then I can mount/unmount.
The strange thing is I can mount/unmount usb sticks or mtp devices as a normal user no probs from thunar! So, I'm assuming it must be my fstab that's the problem?
Using opensuse 11.1 64 bit with kde 4.1.3, apps like k3b, or any multimedia apps can not see the optical drives unless I run the apps as root. I also found that to run bladeenc, I have to do it in a root terminal. Is there a way to set permissions for the normal user? Firefox or any text editor work fine as normal user.
OpenSuse 11.2 64bit When I select a hard drive in Dolphin file manager it asks for the root password. I would like to gain easier access to the drives. The Yast Partition Manager lists all of the drives and has a dialog box to change this i.e. user can mount the drive. Can we change this feature on the run, while the system is running ? The Fstab file is not listing all of the drives, so I cannot just edit the config here.
Q: How can I allow my users to mount a cifs share without an entry in fstab in OpenSuse 11.4?
I have an answer myself. Until OpenSuse 11.2 I could mount my samba shares by making mount.cifs and umount.cifs setuid root. Today I installed OpenSuse 11.4. Unfortunately mount.cifs isn't anymore allowed to be setuid due to security concerns. Security is not an issue in my case, so I copied the mount.cifs and umount.cifs from 11.2 to make it work again:
1. Download cifs-mount-3.4.2-1.1.3.1.x86_64.rpm from this repository (I use 64 bit): "http://download.opensuse.org/distribution/11.2/repo/oss/suse/x86_64/" 2. Extract the files mount.cifs and umount.cifs from the rpm and copy them to /sbin 3. Make them setuid root:
Code: linux-y5qw:~ # chmod u+s /sbin/mount.cifs linux-y5qw:~ # chmod u+s /sbin/umount.cifs 4. Mount your cifs shares as a normal user:
I am using Ubuntu 10.04, with the Enlightenment WM, with nautilus for my file manager and I have installed the halevt package to handle the mounting of my external media. My issue now is that when I mount the media as a normal user it is being mounted as read only - any ideas how I can have halevt mount the media so I can write to it as my normal user in addition to reading from it?
This question is an extension of previous posts in relation to my removable drives. I have an external usb/ide drives and cowon iAduio7 music player. The former is always connected and latter occasionally. The first drive to be recognized gets allocated /dev/sdc1 and /dev/hdd respectively. Until ten days ago I would simply mount them manually after each boot. Recently I added them to my fstab file. It's fine only for this error message on boot.
Code: /dev/sdc1 unexpected inconsistency. fsck died with exit status 4 failed (code 4) Control-D to continue
I found the following on the net Code: If a device is not being mounted during boot, it may be b/c the driver for that device has not been loaded yet at the time that /etc/fstab is read (and thus the device is not active yet and doesn't get mounted). If you want to make sure it gets mounted during boot, you may need to take a look at the boot sequence for your distro and make changes as needed. Another thing you could try is adding a "mount" command of your own to one of your boot scripts. Most distros provide a file with a name like "rc.local" which gets executed late in the boot process and can be used to add your own custom commands to execute during boot. Firstly I want to know which script do you edit and does that mean I have to re-edit the fstab after creating the script.?
Here is my fstab: Code: [sudo] password for siawacsh: # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 /dev/sdd /home/siawacsh/cowon vfat defaults /dev/sdc1 /home/siawacsh/myhome ext3 defaults 0 3 /dev/sdb2 / ext3 errors=remount-ro 0 1 /dev/sdb1 none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0 siawacsh@debian:~$ Remember sdc1 is the external drive, and sdd the music player.
I have attached the removable drives to directories mhyome and cowon.
I am using a broadband internet connection. Currently I am using pon and poff commands to start and stop the internet connection respectively. But for these commands to execute I should switch to the root user. I want even a normal user to be able to start or stop the connection. How can I do this?
In my recent installations of Debian stable release (Jessie) with Gnome and Cinnamon respectively, I added my wife as a normal user. A home directory was created automatically for her.
In these installations, I am able to access her home directory, while, in the past, I was not allowed to access her home directory on previous Debian releases.
As a long time FreeBSD user, I consider give Debian a try upon the arrival of my new laptop. However, seems I couldn't launch desktop environment by simply typing startx on console as on FreeBSD. I can start desktop through a display manager like lightdm on Stretch, which is quite easy and straightforward, but I still prefer the "startx way".
I setup Debian Stretch on Virtualbox (4.3.43) using official debian-installer, login as a normal user, and install xfce4 via Code: Select allsudo apt-get install xfce4. The installation of xfce4 was very fast and it also introduced xorg related packages here. Then I edit my $HOME/.xinitrc as follows:
Code: Select allexec startxfce4
I typed startx to expect Xfce desktop but got the errors complained instead: [URL]....
while the xorg.0.log had the following contents: [URL]....
So, I failed to start xfce4 by startx as a normal user and had to install and start lightdm to go into desktop, but when I login as root, it worked and launched Xfce4 by startx without any problem. I couldn't figure it out now.
When I mount a USB partition from the console, I need to execute mount as root unless I add a line in /etc/fstab. However, Nautilus mounts my USB stick automatically without asking for root permissions and without any entry in/etc/fstab. How does it do this?
I've just installed Debian 5.0.1 (i386; network install) and I've run into a bizarre issue that I have no idea how to troubleshoot. If I log on as (e.g.) User1, log off, and then try to log on again as User2, X-based (i.e. not terminal) software will fail to load until I reboot. After logging on as User2, all X software (including the Gnome interface) will display its interface for a fraction of a second before vanishing from the screen and the task bar. One time the Gnome interface wouldn't load after log-on: the taskbar and menubar repeatedly flashed on and off the screen as Gnome repeatedly tried and failed to load.
I suspect this is not new but I just can't find where it was treated. Maybe someone can give me a good lead.I just want to prevent certain users from accessing CD/DVD drives and all external drives. They should be able to mount their home directories and move around within the OS but they shouldn't be able to move data away from the PC. Any Clues?
I have a question that i want to make a normal user to execute the commands which the root user is able to execute, say if i have a user named siru and when i logged in using siru i cannot run commands like tracert,nmap@loccalhost and all but i can run when i have logged into root account so my question is how to make siru to run the command tracert,nmap@localhost.I have even edited the .bash_profile of siru's home directory from
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then
I have a partition with my firefox profile that when I mount with Pysdm it cannot access. But when I mount normally by right clicking, unmount/mount. I can.
I've been Ubuntu 8.10 along with Windows from abt 3-4 monthsFor automatically mounting of NTFS drives that I has which were created by WIndows, I uses NTFS Configuration tool Everything was working fine in both OS's.But how come of a sudden today I'm not able to open any drive that I have which were happening till now.Not only this,at least if we press F9 then we get sidebar,from where we could have opened the drive .even that is not happening.
I have a few hard drives that I connect to my system with an usb to ide cord. some of the drives mount right away but some others don't below example.
Oct 24 11:10:04 linux-b21t kernel: usb 1-3: new high speed USB device using ehci_hcd and address 14 Oct 24 11:10:04 linux-b21t kernel: usb 1-3: configuration #1 chosen from 1 choice Oct 24 11:10:04 linux-b21t kernel: scsi15 : SCSI emulation for USB Mass Storage devices Oct 24 11:10:04 linux-b21t kernel: usb-storage: device found at 14
I am writing a c program in linux and in the program I am mounting 2 usb devices attached to 2 specific ports in the computer. (eg : I have to mount the usb attached to the left port in to /mnt/left and the right port to /mnt/right) and the attachment order of those devices may differ (eg: left port usb may or may not be attached before the right.) In this case what should i do?
I have installed suse linux on my desktop pc. I cant see the disk drives on which windows xp is load. How can I mount those drives so that I can see those drives in suse also. Also when I connect my usb drive, it is also not shown. I am new to linux. What are these commands to mount the other drives.
I know this is an easy task, especially using cPanel. However I want to do this without formatting the drive, since there is sensitive data already on the hard drives. So how would I mount a hard drive, but not format/lose any of the data already on it?I've looked and everything seems to lead me to believe that I'll lose data if I do it that way.
I am writing a c program in linux and in the program I am mounting 2 usb devices attached to 2 specific ports in the computer. (eg : I have to mount the usb attached to the left port in to /mnt/left and the right port to /mnt/right) and the attachment order of those devices may differ (eg: left port usb may or may not be attached before the right.) In this case what should i do?
I have a fresh installation of Fedora 11 and I am having a hard time figuring out how to automount my storage drives. Each time I login, I try to access my various storage drives and gnome makes me authenticate asroot before mounting it. FSTAB lists only logical volumes but not my storage drives. What can I do to make sure these automount when I login?
I know this problem was mentioned here before but because I could not find a straight forward solution anywhere I am reposting this here. So here goes.As of today, my Fedora 13 64-bit has ceased to auto-mount USB drives completely. I have made absolutely no changes to the system and I am completely baffled and frustrated by this sudden development. I desperately need this system to function properly as I use it for school and this really put a wrench in my works, especially since I have done nothing to cause this. I assume that one of the many recent updates that have been released must have done this, but I have absolutely no idea how to fix this. Why do Fedora developers release updates that cripple a perfectly functioning system is beyond me and crap like this really makes me consider switching back to Ubuntu.
Is there a way that I can get Dolphin to mount partitions? When I try to, it gives me an error on the bottom of the window saying I don't have permission to. I also can't mount partitions in other programs like Amarok, because of the same issue.
Error Message: An error occurred while accessing 'Windows 7', the system responded: org.freedesktop.Hal.Device.PermissionDeniedByPolicy: org.freeDesktop.hal.storage.mount-fixed auth_admin_keep_always <-- (action, result)
my opensuse is not auto mounting USB drives anymore. It was working a few weeks ago! I have an external 500GB HDD and also an 16GB Kingston USB flash disk, both are not being auto mounted.If i do lsusb i get
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 006: ID 0930:6545 Toshiba Corp. Kingston DataTraveler 2.0 Stick (4GB) / PNY Attache 4GB Stick Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I just recently found an iso for 6.06 and installed it on an old pc of mine that already had 8.04 and crunchbang on it. crunchbang is on an ext4 formatted partition.
When I setup 6.06, it asked me what i wanted to mount my drives as, so i told it to mount the ext4 system as hda1.
whenever 6.06 boots, it tries to mount hda1 but can't because it doesn't recognize ext4.
What I am asking is this: is there a deb or a package out there I can install to make 6.06 recognize ext4? if not, how can i make it so that 6.06 does not want to mount hda1?
I can get past the initial error message and into the desktop, so 6.06 does work.
I have Ubuntu 9.10 and when i plug in my usb drive it wont mount it automatically and is not shown in the nautilus browser also, but if i search in /dev its visible(its detected) and i can mount using mount /dev/sdc /mnt But if i do this i can only copy files from browser and for all other times i need to use terminal again
It seems to be (we have experienced) that 10.10 can't handle having an older ext3 drive mounted to a folder on the 1010 ext4 drive. The files get "corrupted", but afterwards, putting the drive back into the original older 9.04 system, the files are perfectly fine again.
Update: Solution posted below. Distro: Kubuntu 10.04 AMD 64. My system automatically mounts USB devices when attached to the system. I have explicitly disabled this function in (KDE) System Settings --> Advanced --> Removable devices. It doesn't matter - as soon as a USB device is plugged in the system mounts it as root.