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

Re: user is not in the suder's file



On Tue, Feb 04, 2025 at 05:14:31PM -0600, K0LNY ?? wrote:
> Hi All,
> First off, if you say this not accessibility related, then screw you!
> I just installed Debian, and I have to use Debian on my Asus 701, because that is the only 32 bit Linux package I know of that is kept up to date.

Hi Glenn,

Just a heads up: Debian will drop the 32 bit installer with the next
major release (Trixie / Debian 13) expected later this year. 
If you ever need to reinstall after that point, you'll have to upgrade
from the previous version. If you can, it might be advisable to switch
to newer hardware and a 64 bit system.

> So, I guess I made the mistake in the install to set a password for root.
> I have no problems with Raspbian.

Raspbian does things slightly differently.

If you *set* a root password, then Debian will use it and you will have a
separate root password and user password.

If you *don't* set a root password - tab through the password fields and
hit Continue - then the first user will be set up to use sudo, in just the 
same way as Ubuntu and Raspbian. The root account will be locked with a
password unknown to you, and the first user will be added to group sudo.

> So, without TTS to tell me what is going on, I'm trying to read the screen with the app seeing AI after each enter of the enter key.
> I have to type "clear" to not hear everything I have done so far, all over again.
> So, I see from reading on-line, that I need to use su - instead.
> I am at the Mate desktop in a terminal.
> I can backspace and hear the clunk sound, so I know that part is good.
> So, I type 

> su - apt install orca

If you had typed 

su - [Enter]

and answered the password prompt with the root password
you would have had a root prompt of # and been logged in as root.

At that point, you could type 

apt install orca

and orca would install.

To get out of a root session, type

exit

> and it says something about not finding apt
> I tried su - followed by enter and I think it asked for a password, and I enter the password, and it cannot find my username.
> So, what is up with all this crap?

Sam has given you the correct invocation of su - to do this in a single line.

> What am I doing wrong?
> I tried to SSH into it, and it says connection refused.
> If I could SSH into it, at least I could do trial and error until I get this odd su stuff fixed, and I can install sudo.
> Thanks for any assistance.
> ugh!
> 

if you want to set up sudo after the event, login as root as above and
type 

adduser [username] sudo

to add your user to group sudo.

Logout and log back in again, type

groups [username]

and you should see your user is now in group sudo. The sudoers file in
Debian is set so that anyone in group sudo has full sudo privileges.

If you get into the habit of typing

sudo -i

you get a full login shell with sudo privileges (similar to the root shell
above) which may save you having to type sudo in front of each command
and which I find easier if you have several commands to type.

> Glenn
> 

Hope this helps - all the best, as ever,

Andy Cater
(amacater@debian.org)

> 
> 
> Being smart is knowing how to get out of a tough situation. Being wise is not getting into it in the first place.
> 
> Glenn K0LNY & WSAT439


Reply to: