LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-18-2017, 01:05 PM   #1
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Umount permissions for non administrative account


I have a script that automounts my usb(s) and it works great. however when I try to unmount it from a non administrative account (with rox filer) I don't have the necessary permission to do so. Is there anyway I can get this to work without sudo? I'm using a open-suse 13.2 minimal os
 
Old 02-18-2017, 01:15 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
usually automount does autoumount too, if the given drive was not in use. but probably you need to configure it.
 
Old 02-18-2017, 03:18 PM   #3
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258

Original Poster
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Quote:
Originally Posted by pan64 View Post
usually automount does autoumount too, if the given drive was not in use. but probably you need to configure it.
Right. however my script unmounts/removes mount points AFTER I remove the usb. So I like to manually unmount to prevent data loss. It works great in root. So all I need is a way to manually unmount in a non root account.
 
Old 02-18-2017, 08:28 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Isn't there a way in Yast to set groups like cdrom and (forgot) media? to users?
 
Old 02-18-2017, 08:39 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
every try adding sudo to the commands or maybe placing the script in /usr/bin then setting up the script in sudoers file and giving it sudo nopasswd for user or group
 
Old 02-19-2017, 03:24 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
I think the eject command works for regular users, but probably not in your case.
 
Old 02-20-2017, 07:49 PM   #7
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258

Original Poster
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Quote:
Originally Posted by jefro View Post
Isn't there a way in Yast to set groups like cdrom and (forgot) media? to users?
I didn't find that option. does anyone know how?

Also I don't want to use sudo unless absolutely necessary.

And no eject does not have permission either.

Are there any alternatives to umount that would allow me to do this?
 
Old 02-20-2017, 07:56 PM   #8
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by Mill J View Post
I have a script that automounts my usb(s) and it works great. however when I try to unmount it from a non administrative account (with rox filer) I don't have the necessary permission to do so. Is there anyway I can get this to work without sudo? I'm using a open-suse 13.2 minimal os
I have some backup scripts that mount USB drives. The last command in each script is a umount command for the USB drive. Try putting a umount command in your script.

--------------------------
Steve Stites
 
Old 02-21-2017, 12:17 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
can you check your own groups? I mean execute id and you will see if your user is member of cdrom, audio ....
I
 
Old 02-22-2017, 09:57 PM   #10
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258

Original Poster
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Quote:
Originally Posted by pan64 View Post
can you check your own groups? I mean execute id and you will see if your user is member of cdrom, audio ....
I
I'm not sure what you're talking about. Could you explain? Thanks
 
Old 02-23-2017, 12:05 AM   #11
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
when you execute the command id in a terminal you will see how your user was configured. Nothing more, just a simple command in a shell.
 
Old 02-23-2017, 06:29 AM   #12
nodir
Member
 
Registered: May 2016
Posts: 222

Rep: Reputation: Disabled
pmount mounts and pumounts as user without much hazzle.
 
2 members found this post helpful.
Old 02-23-2017, 08:04 AM   #13
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258

Original Poster
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Quote:
Originally Posted by nodir View Post
pmount mounts and pumounts as user without much hazzle.
I do have those installed. but I haven't had too much luck getting it going. I'd be glad if you have more info.
 
Old 02-23-2017, 08:07 AM   #14
nodir
Member
 
Registered: May 2016
Posts: 222

Rep: Reputation: Disabled
Sorry, i ain't got more info.
I use it seldom, and it always works out of box (but i use different distros, debian, slackware and such).
Perhaps (a very big perhaps) being member of the fuse group comes into this (i don't think i am member of fuse though ... ).
Perhaps someone else knows more.
 
Old 02-23-2017, 08:16 AM   #15
nodir
Member
 
Registered: May 2016
Posts: 222

Rep: Reputation: Disabled
Aha. On Slackware it didn't work as user too. I added the user to the plugdev group:
Code:
usermod -a -G plugdev user
logged out and back in, and now can pmount and pumount the usb-stick.
(if all distros use that group is beyond me).
 
1 members found this post helpful.
  


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
account with root permissions NonSumPisces Linux - Newbie 33 08-02-2013 05:18 PM
[SOLVED] Copying files in an admin account from an account with insufficient permissions? nobuntu Linux - General 14 07-14-2012 02:14 AM
Need to make local user account with administrative rights wilmapayne Other *NIX 2 04-22-2009 08:24 AM
Cannot log into administrative account AndromedaStrain Ubuntu 17 08-11-2008 12:40 PM
No installation permissions on my account Kiiro Ubuntu 6 03-07-2008 11:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:25 PM.

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