LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-09-2018, 02:00 AM   #1
byebyemrgates
Member
 
Registered: Nov 2017
Location: Blue Mountains, Australia!
Distribution: Mint 20, Ubuntu 20
Posts: 164

Rep: Reputation: Disabled
run any app as administrator


Could someone please suggest a SIMPLE way to run any app as administrator in Mint?
For example, to run Disks or some other utility
Cheers!
 
Old 08-09-2018, 02:53 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Why? You don't need to run anything and everything as administrator\root, only things such as installing or upgrading packages, editing config files, etc. Using sudo, then entering your password, before a command seems simple enough to me.
 
Old 08-09-2018, 04:51 AM   #3
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
If you're using Ubuntu, it uses sudo by default and the "root" user account is disabled by default. Therefore as brianL says, you would just put sudo in front of the command you would like to run as "root".

eg.

Code:
sudo <name of command here>
 
Old 08-09-2018, 03:35 PM   #4
byebyemrgates
Member
 
Registered: Nov 2017
Location: Blue Mountains, Australia!
Distribution: Mint 20, Ubuntu 20
Posts: 164

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jsbjsb001 View Post
If you're using Ubuntu, it uses sudo by default and the "root" user account is disabled by default. Therefore as brianL says, you would just put sudo in front of the command you would like to run as "root".

eg.

Code:
sudo <name of command here>
Have mercy on me, I am aan an absolute newbie...
I guess what I mean is that I wonder if I don't understand something basic about "root" and "sudo".
Is "root" the "super user" who can do ANYTHING he likes?
In my other thread you can see the issue I unexpectedly encountered: going "gksu nemo" - and still getting message "you don't have permission to do this" (change ownership or permission"
https://www.linuxquestions.org/quest...07#post5889707
Cheers!
 
Old 08-09-2018, 04:22 PM   #5
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,972
Blog Entries: 32

Rep: Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465
byebyemrgates,

Have a read of this explanation:
https://www.beyondtrust.com/blog/uni...ts-not-enough/
 
Old 08-09-2018, 04:58 PM   #6
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Hello @byebyemrgates, allow me to simplify:

In Linux, we can change ownership with 'chown' or change permission with 'chmod'. A couple of examples:

To change the file 'foo' to be owned by byebyemrgates:

Code:
sudo chown byebyemrgates foo
To give the file 'foo' read/write permissions for its owner, and read-only permission for everyone else:

Code:
sudo chmod 644 foo
Simple enough?

However a warning that changing file ownership and permission is rarely a good idea. I work in IT, and almost every day, I see at least one problem caused by wrong permissions. I noticed in your other thread you are asking for help extracting photos from your camera. If you change the permissions/ownership on the camera's storage, it might affect the camera's ability to read those files. I suggest, rather, that you follow along with @michaelk's advice in your other thread. He is a knowledgeable user and will talk you through the problem. Don't do anything hasty!
 
  


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
You must be a good system administrator before being a network administrator. mohajuice Linux - Certification 5 01-03-2013 12:46 PM
Run as administrator or as desktop user? genogebot Linux - Newbie 65 07-13-2010 12:17 AM
run app as service MiniBubba Mandriva 3 09-19-2004 07:51 AM
RH 8.0, run app on startup? rivethead Linux - Software 1 02-04-2003 01:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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