Steam Deck

Steam Deck

How to give root acces ?
Hello guys,

Anyone can tell me how to give root acces to one existing user ?

I have see something like sudo username ALL ALL=(ALL) ALL

but i got sudo group dont exist i have to create one group before ?
< >
Showing 1-14 of 14 comments
Prezidentas May 30, 2023 @ 12:18am 
keep us posted, I wonder how many days it will take until you need to reinstall the whole OS :steammocking:
All the info yoy need is in the official FAQ

https://help.steampowered.com/en/faqs/view/671A-4453-E8D2-323C
MasterDragoOn[QC] May 30, 2023 @ 1:17am 
Originally posted by Škoda 14Tr:
keep us posted, I wonder how many days it will take until you need to reinstall the whole OS :steammocking:
I dont have problem with that, i have installed steam os 3.0 and windows 11 many times.
MasterDragoOn[QC] May 30, 2023 @ 1:21am 
Originally posted by Linux Retro Gamer:
All the info yoy need is in the official FAQ

https://help.steampowered.com/en/faqs/view/671A-4453-E8D2-323C

I dont find the command but anyways i have uninstall the app for now.
tfk May 30, 2023 @ 2:14am 
Can't this be done via the settings app? Settings / Users, find user, set account type to administrator.
MasterDragoOn[QC] May 30, 2023 @ 2:57am 
Originally posted by tfk:
Can't this be done via the settings app? Settings / Users, find user, set account type to administrator.
Yeah i am administrator but i dont have all the power of the super user unlocked.
tfk May 30, 2023 @ 3:04am 
Can you give an example of what you are trying to accomplish? If you've set the password for the deck user, you should be able to to administrative tasks. If you need to write to the file system outside of your home directory, then you need to disable the read only file system. As Valve has enabled this on the deck.
Jake Sully May 30, 2023 @ 5:08am 
Have you tried typing sudo command? By default non root accounts has to use sudo infront of each command to run file/command as root.
deaddoof May 30, 2023 @ 8:54am 
I do not think it will survive an update because `/etc/sudoers` is in the /etc dir

https://wiki.archlinux.org/title/sudo
Last edited by deaddoof; May 30, 2023 @ 9:01am
fender178 May 30, 2023 @ 11:45am 
Also any daily driver of Linux will tell you that is not a good idea to give yourself permanent root access because it is NOT secure and I totally agree with them because a lot of stuff could go wrong if somehow you got hacked. Also back in the day some Linux Distros had a root user but it was not a good idea to use it due to security hence the reason for using the sudo command.
retrogunner May 30, 2023 @ 7:12pm 
Originally posted by deaddoof:
I do not think it will survive an update because `/etc/sudoers` is in the /etc dir

https://wiki.archlinux.org/title/sudo
It should stick. Several directories like /etc,/opt,/var are actually overlays living in /home/.steamos/. How else would our Flakpaks retain between OS upgrades (they live under /var/lib/)
retrogunner May 30, 2023 @ 7:30pm 
I'm not going to switch to desktop mode to check on this but:
- If you're wanting to get around the sudo timeout, just `sudo su -` and become root.
- if you're really really wanting to do sudo commands as the `deck user` without having a use the password, you need to update /etc/sudoers to have the NOPASSWD option **for the correct entry**.

Everything you do is at your own risk and you assume all responsibility. It theoretically would go something like this:
Gotta see what groups you belong to. IIRC, `deck` is a member of the group `wheel` so it can `sudo`. In Konsole, issue: # sudo su - root # time to take care of business # id deck # confirm the groups # grep "^%" /etc/sudoers # see what groups can sudo ALL # cp -ia /etc/sudoers /etc/sudoers.orig # always have a backup. IIRC, visudo isn't on the deck # vi /etc/sudoers # /ALL$ # find the entry with the ALL command, making sure it's the group you belong to read some instructions and warnings[www.cyberciti.biz] * edit the line so it looks something like this nonsense %wheel ALL=(ALL) NOPASSWD:ALL # :wq # write and quit the file DO NOT LEAVE SUDO. YOU'RE GONNA WANNA TEST. # sudo -l # list out your available sudo commands. * If it errors, you messed up. try again or restore the /etc/sudoers.orig. * if good, you're fine to leave suroot. As user "deck", issue # sudo -l # to make sure it's good
MasterDragoOn[QC] May 30, 2023 @ 7:53pm 
I dont will do it if everyone say its risky.
.EteRnal. May 31, 2023 @ 3:04am 
Originally posted by MasterDragoOnQC:
I dont will do it if everyone say its risky.
It is not advisable to run as root all the time, it can be a security risk. Just sudo anything that needs escalation.
< >
Showing 1-14 of 14 comments
Per page: 1530 50

Date Posted: May 29, 2023 @ 11:13pm
Posts: 14