Root: command not found

Kernels & Hardware, configuring network, installing services

Root: command not found

Postby @ttila » 2018-08-10 07:46

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
@ttila
 
Posts: 9
Joined: 2017-12-13 16:57

Re: Root: command not found

Postby 4D696B65 » 2018-08-10 07:54

We now need to use
Code: Select all
su -
User avatar
4D696B65
 
Posts: 2191
Joined: 2009-06-28 06:09

Re: Root: command not found

Postby Segfault » 2018-08-10 10:02

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.
Segfault
 
Posts: 691
Joined: 2005-09-24 12:24

Re: Root: command not found

Postby 4D696B65 » 2018-08-10 10:40

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
4D696B65
 
Posts: 2191
Joined: 2009-06-28 06:09

Re: Root: command not found

Postby @ttila » 2018-08-10 18:04

Thank you for feedbacks :wink:. I must remeber to use the "-" everytime i need to be root.
@ttila
 
Posts: 9
Joined: 2017-12-13 16:57

Re: Root: command not found

Postby debiman » 2018-08-11 10:56

Code: Select all
alias su='su -'
User avatar
debiman
 
Posts: 2605
Joined: 2013-03-12 07:18


Return to System configuration

Who is online

Users browsing this forum: None1975 and 12 guests

fashionable