[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Sudo



Re-posting as it seems you didn't receive/notice it first.

Additional comments based on other subthreads below the quote...

Quoting Jonas Smedegaard (2020-01-25 18:28:20)
> Hi Harold,
> 
> Quoting Harold Hartley (2020-01-25 17:39:28)
> > I did a net-install and installed with no problems.
> > The only problem I’m having is when I want to check for updates or install a file, it tells me that I’m not in the sudoers file.
> > I’m not sure what’s going on, but I’m the only one on the system and should have admin access anyways.
> > Hope someone has an answer for this problem.
> 
> During install you were asked for a root password.
> 
> If you _didn't_ provide a root password, then sudo will get installed, 
> and the initial user account was added to the "sudo" group.
> 
> If you _did_ provide a root password, then sudo will _not_ get installed 
> (unless you chose to install something which pulled in sudo), and the 
> initial user account was _not_ added to the "sudo" group.
> 
> If you just want root access, then use this command:
> 
>   su --login
> 
> If you want your user account to have root access via sudo, then (as 
> root, so do the above and) use this command:
> 
>   adduser YOUR_ACCOUNT_NAME sudo


Beware that command syntax for su and sudo is not the same:


  sudo apt update

  su -c "apt update"

Also, beware that the system group your account needs to be added to is 
"sudo" (which is different from e.g. Ubuntu where the group is (or was, 
at some point) "sudoers).


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature


Reply to: