LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-17-2019, 03:41 PM   #1
udaman
Member
 
Registered: Oct 2010
Location: New England, USA
Distribution: OpenSUSE/Slackware64/RHEL/Mythbuntu
Posts: 189

Rep: Reputation: 39
Fedora Workstation 30 root access


I just installed Workstation 30 and I'm trying to change permissions on a second drive I've installed. I can't gain root using "su -" because it's not using my user password and I don't know what the install used for root.

Did I miss a step during the install?

Is there a way I can change root's password from a terminal window, or gui app? Or, do I need to modify the boot loader to gain root at boot time?

Thanks for your help.
 
Old 07-17-2019, 03:58 PM   #2
leemenix
LQ Newbie
 
Registered: Jul 2019
Distribution: Slackware
Posts: 12

Rep: Reputation: 3
cool new things

did you try with gain root access with

Code:
sudo su
if this work you can use command to change/set new one, or maybe immediately
Code:
sudo passwd root
p.s. worst case use one of this two methods
a. rescue mode
b. fedore live media installation cd/dvd/usb...

more info on fedora official documentation page
https://docs.fedoraproject.org/en-US...root-password/

Last edited by leemenix; 07-17-2019 at 04:23 PM.
 
1 members found this post helpful.
Old 07-17-2019, 04:26 PM   #3
udaman
Member
 
Registered: Oct 2010
Location: New England, USA
Distribution: OpenSUSE/Slackware64/RHEL/Mythbuntu
Posts: 189

Original Poster
Rep: Reputation: 39
Quote:
Originally Posted by leemenix View Post
cool new things

did you try with gain root access with

Code:
sudo su
if this work you can use command to change/set new one, or maybe immediately
Code:
sudo passwd root
Thank you, sudo worked perfectly. I can't believe I forgot about that, I never needed to use it when I was a working admin.
 
Old 07-17-2019, 05:19 PM   #4
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
No 'root' necessary in Fedora 30! Simply:

Code:
sudo chmod
or

Code:
sudo chown
or

Code:
sudo -i
chmod
chown
exit
For example, to give your user 'udaman' ownership of a file called 'bar' on a drive called 'foo' looks like this:

Code:
sudo chown udaman /run/media/udaman/foo/bar
An alternate approach is to copy the file to your home folder (or other destination), NOT using sudo, and then your user will have ownership of the copy:

Code:
cp /run/media/udaman/foo/bar ~/

Last edited by snowday; 07-17-2019 at 05:42 PM.
 
  


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
LXer: Fedora Present and Future: a Fedora.next 2014 Update (Part IV.d, “Fedora Workstation”) LXer Syndicated Linux News 0 06-02-2014 10:20 PM
VMWare workstation 9: SL 6.3 Live DVD in VMWare Workstation:"unable to find the usable disk space" ravik453 Linux - Virtualization and Cloud 3 03-04-2013 02:47 PM
Can ssh to LDAP client workstation running CentOS 6.3 but cannot "su" on workstation scott.anderson Linux - Desktop 2 09-27-2012 04:41 PM
Windows workstation Samba error "not allowed to log on from this workstation" salscozzari Linux - Networking 0 01-02-2008 02:04 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 10:20 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