You are not logged in.

#1 2017-06-09 07:13:36

ghus
Banned
Registered: 2016-11-14
Posts: 420

[solved] shutdown without sudo : why ?

Hi to everybody : I saw a thread about this quetsion , that it's from years ago , and I was not sure if add my question there or not .
I am shutting down the OS without sudo commands , and I like to ask if I've made a mistake , or the mode of my installation can be less secure for one tought that I will explain .
After the installation of the OS , at the moment of the reboot , we are prompt to add an user , a graphical DE , drivers , etc : can it be a difference between doing all that logged like roots ; instead of logging like a root , adding a user ( I have not gave it a group , either ) , adding a password , changing on  /etc/sudoers the ability to use sudo , if the user knows the password , exit and loggin like the user , installing all the graphical , driver , programs utilities .
May be some kind of permiss difference to had done that from user and sudo , instead root ?
This thing was started when I saw that I can shutdown without a sudo command , so I am asking if it is a mistake , or this kind of installation can be less secure , in a general pourpose .
Thanks .

Edith : I tried on Plasma , and I3 , on two different machines .
Edith : typos .

Last edited by ghus (2017-06-09 14:21:19)

Offline

#2 2017-06-09 07:21:17

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [solved] shutdown without sudo : why ?

The magic of systemd.


Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-06-09 11:42:00

ghus
Banned
Registered: 2016-11-14
Posts: 420

Re: [solved] shutdown without sudo : why ?

Thanks : I have not add any rule to polkit , nor using systemctl poweroff , but only "poweroff" , or "shutdown" .

Offline

#4 2017-06-09 12:08:45

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: [solved] shutdown without sudo : why ?

$ ls -la /usr/bin/shutdown 
lrwxrwxrwx 1 root root 9 Jan 28 22:32 /usr/bin/shutdown -> systemctl
$ ls -la /usr/bin/poweroff
lrwxrwxrwx 1 root root 9 Jan 28 22:32 /usr/bin/poweroff -> systemctl

Offline

#5 2017-06-09 14:20:47

ghus
Banned
Registered: 2016-11-14
Posts: 420

Re: [solved] shutdown without sudo : why ?

$ ls -la /usr/bin/shutdown 
lrwxrwxrwx 1 root root 9 28 gen 23.32 /usr/bin/shutdown -> systemctl
$ ls -la /usr/bin/poweroff
lrwxrwxrwx 1 root root 9 28 gen 23.32 /usr/bin/poweroff -> systemctl

Thanks smile  .
There is not any difference to install averything from the user , or from root ?

Last edited by ghus (2017-06-09 14:22:38)

Offline

#6 2017-06-09 14:25:42

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: [solved] shutdown without sudo : why ?

ghus wrote:

There is not any difference to install averything from the user , or from root ?

Not sure I understand what you mean.  You would need to use sudo with `pacman -Syu` or do you mean something else.

Offline

#7 2017-06-09 15:22:52

ghus
Banned
Registered: 2016-11-14
Posts: 420

Re: [solved] shutdown without sudo : why ?

As  wrote on the first post , if there are differences between :
1) when finish to install Arch reboot and from the root add an user , and install everything
2) when finish to install Arch reboot and from the root add an user , gave him a password , allow him to use sudo , switch to the user and install everything .

Is there any difference , for permissions or something else different between those two metods ( i.e. install a DE from the user or from the root ) ?

Last edited by ghus (2017-06-09 15:23:49)

Offline

#8 2017-06-09 15:26:28

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: [solved] shutdown without sudo : why ?

Should not make a difference apart from the history file it will be recorded in.  I would not recommend starting a graphical environment as root.

Offline

#9 2017-06-10 01:09:32

ghus
Banned
Registered: 2016-11-14
Posts: 420

Re: [solved] shutdown without sudo : why ?

Not having a Graphical installed DE from the root , I am not able to access it from there , so that's will be fine I tought .
Thanks a lot .

Last edited by ghus (2017-06-10 01:10:06)

Offline

Board footer

Powered by FluxBB