Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Root: command not found

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
@ttila
Posts: 139
Joined: 2017-12-13 16:57
Has thanked: 2 times
Been thanked: 14 times

Root: command not found

#1 Post by @ttila »

I cannot find anywhere if the "su" issue's been solved, i read that it is fixed in sid but not for me in testing. I workaround with sudo. I'm referring to:

Code: Select all

root@intruder:~# modprobe
bash: modprobe: comando non trovato
Thanks

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 85 times

Re: Root: command not found

#2 Post by 4D696B65 »

We now need to use

Code: Select all

su -

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: Root: command not found

#3 Post by Segfault »

There is a man page for su ... Using su without switching the environment can wreak havoc in users home directory by changing permissions on config files.

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 85 times

Re: Root: command not found

#4 Post by 4D696B65 »

util-linux (2.32-0.4) unstable; urgency=medium

The util-linux implementation of /bin/su is now used, replacing the
one previously supplied by src:shadow (shipped in login package), and
bringing Debian in line with other modern distributions. The two
implementations are very similar but have some minor differences (and
there might be more that was not yet noticed ofcourse), e.g.

- new 'su' (with no args, i.e. when preserving the environment) also
preserves PATH and IFS, while old su would always reset PATH and IFS
even in 'preserve environment' mode.
- su '' (empty user string) used to give root, but now returns an error.
- previously su only had one pam config, but now 'su -' is configured
separately in /etc/pam.d/su-l

The first difference is probably the most user visible one. Doing
plain 'su' is a really bad idea for many reasons, so using 'su -' is
strongly recommended to always get a newly set up environment similar
to a normal login. If you want to restore behaviour more similar to
the previous one you can add 'ALWAYS_SET_PATH yes' in /etc/login.defs.

User avatar
@ttila
Posts: 139
Joined: 2017-12-13 16:57
Has thanked: 2 times
Been thanked: 14 times

Re: Root: command not found

#5 Post by @ttila »

Thank you for feedbacks :wink:. I must remeber to use the "-" everytime i need to be root.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Root: command not found

#6 Post by debiman »

Code: Select all

alias su='su -'

Post Reply