LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-15-2021, 03:12 PM   #16
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484

Quote:
Originally Posted by centguy View Post
When installing a Linux system which uses sudo by default, the initial ordinary user will by default have root privileges by using sudo.

Not the case for me. I have to try to create other non-first user account to do a lot of tests.

Frankly I do not use sudo. I always do su - , login and then run gparted. For some reason gparted has some set DISPLAY problem (
all that gparted/Xorg/wayland bad combination) on the root account that
one has to run gparted from a user account. If I had know to avoid "sudo gparted" by Applications -> System Tools -> gparted that will work fine too.
The issue with the display is because you logged in to root with 'su -'. Using that gives the root user its own environment which does not include inheriting the $DISPLAY variable from the non-root user. If you try 'sudo gparted' it should work, as would switching to the root user with ' su ' and not switching the environment.
 
Old 11-15-2021, 03:19 PM   #17
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by pan64 View Post
what is a user with Administer right?
I suspect the OP is using something like the gnome settings -> users tool to create the user. There if you click the tab for administrator rights that user is added to the group that is able to use sudo.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2021-11-15 15-17-19.png
Views:	5
Size:	44.9 KB
ID:	37707  
 
  


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: The Ultimate Sudo FAQ — To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM
Problem with SUDO : sudo: pam_authenticate: Module is unknown cristoph_ Linux - Software 2 03-02-2009 07:12 PM
sudo sudo onthefritz SUSE / openSUSE 4 06-05-2007 02:37 PM
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
Sudo without having to type "sudo?" Mitch G Linux - Security 3 09-28-2006 02:16 PM

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

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