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 06-20-2022, 12:26 AM   #1
MintyNZ
LQ Newbie
 
Registered: Jun 2022
Distribution: LMDE/Arch
Posts: 19

Rep: Reputation: 1
Access secondary drive without root password


I have a laptop with two SSD's. One runs Arch. Both are partitioned for Linux and auto mount on start up. When accessing the second drive from dolphin however it always asks for the root password. Is there a way to turn this off?

Thanks.
 
Old 06-20-2022, 12:27 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,849

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
usually you can configure it in /etc/fstab (to allow mount for users).
 
1 members found this post helpful.
Old 06-20-2022, 01:20 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by MintyNZ View Post
I have a laptop with two SSD's. One runs Arch. Both are partitioned for Linux and auto mount on start up. When accessing the second drive from dolphin however it always asks for the root password. Is there a way to turn this off?
Maybe the mounted tree is owned by root?
Or the directory you mount on?
I have no special settings in fstab, but the 2 things above are user-owned. No problems whatsoever.

OTOH this could also have to do with permissions required to do the mounting itself.

Tell us a bit more about it; what exactly is the error message? Once mounted, can you access everything normally?
 
1 members found this post helpful.
Old 06-20-2022, 03:38 PM   #4
MintyNZ
LQ Newbie
 
Registered: Jun 2022
Distribution: LMDE/Arch
Posts: 19

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by ondoho View Post
Maybe the mounted tree is owned by root?
Or the directory you mount on?
I have no special settings in fstab, but the 2 things above are user-owned. No problems whatsoever.

OTOH this could also have to do with permissions required to do the mounting itself.

Tell us a bit more about it; what exactly is the error message? Once mounted, can you access everything normally?
There is no error message it simply asks for my root password when I first access the secondary drive from my file manager. I was hoping to remove the need to enter the root password.
 
Old 06-20-2022, 08:22 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
I second ondoho's suggestion. You can put it in fstab with the "rw" flag.

A web search for "configure fstab" will turn up a number of articles and tutorials. This is one of my favorites.

Last edited by frankbell; 06-20-2022 at 08:23 PM.
 
1 members found this post helpful.
Old 06-20-2022, 11:31 PM   #6
MintyNZ
LQ Newbie
 
Registered: Jun 2022
Distribution: LMDE/Arch
Posts: 19

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by frankbell View Post
I second ondoho's suggestion. You can put it in fstab with the "rw" flag.

A web search for "configure fstab" will turn up a number of articles and tutorials. This is one of my favorites.
Thanks everyone, I'll do a little research and see where it takes me.
 
Old 06-20-2022, 11:36 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by MintyNZ View Post
There is no error message it simply asks for my root password when I first access the secondary drive from my file manager. I was hoping to remove the need to enter the root password.
OK. I suspect it's a polkit issue then.
Which DE and filemanager are you using, how are you starting your graphical environment?
 
Old 06-22-2022, 04:17 AM   #8
MintyNZ
LQ Newbie
 
Registered: Jun 2022
Distribution: LMDE/Arch
Posts: 19

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by ondoho View Post
OK. I suspect it's a polkit issue then.
Which DE and filemanager are you using, how are you starting your graphical environment?
I'm using KDE plasma 5.25.1 and Dolphin on Arch.
 
Old 06-22-2022, 10:50 PM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
On 2nd thought, you want it mounted at boot, editing fstab is probably the right choice.
Show us your /etc/fstab.

This web search: https://www.startpage.com/do/search?...ering+password
had following relevant-looking results:
https://bbs.archlinux.org/viewtopic.php?id=154301
https://www.reddit.com/r/openSUSE/co...when_mounting/
https://askubuntu.com/questions/1274...econdary-drive

Last edited by ondoho; 06-22-2022 at 10:51 PM.
 
1 members found this post helpful.
Old 06-23-2022, 04:42 PM   #10
MintyNZ
LQ Newbie
 
Registered: Jun 2022
Distribution: LMDE/Arch
Posts: 19

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by ondoho View Post
On 2nd thought, you want it mounted at boot, editing fstab is probably the right choice.
Show us your /etc/fstab.

This web search: https://www.startpage.com/do/search?...ering+password
had following relevant-looking results:
https://bbs.archlinux.org/viewtopic.php?id=154301
https://www.reddit.com/r/openSUSE/co...when_mounting/
https://askubuntu.com/questions/1274...econdary-drive
Many thanks. I did run a search but sometimes the challenge is having a precise idea of what you are looking for. This should provide enough material for me to work through the issue and sort it out.
 
  


Reply

Tags
root password, ssd



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
how do I access my admin password on Xtra PC or change same without original password Modular Linux - Newbie 1 01-16-2022 09:15 PM
Have to unmount secondary hard drive to access it. Why? aquatic7 Linux - Newbie 3 02-25-2019 04:53 AM
(Solved) Bumblebee "Cannot access Secondary GPU, secondary X is not active" Norgi Slackware 0 03-23-2013 11:45 PM
how to change root password without knowing the grub password ramesh.mimit Red Hat 8 10-15-2011 05:12 AM
Booting Windows on secondary hard drive with Grub on primary drive mpmackenna Linux - General 1 11-09-2008 06:16 PM

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

All times are GMT -5. The time now is 07:18 AM.

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