Linked Questions

23
votes
2answers
97k views

What is the difference between 'su -' and 'su root'? [duplicate]

Possible Duplicate: Why do we use su - and not just su? I understand that root doesn't have to be a superuser. But in the case that it is ... what is the difference between sudo su - and sudo su ...
0
votes
1answer
308 views

Difference between su and su - [duplicate]

I wonder what's the exact difference between these 2 commands:1. su 2. su - . Can anyone please explain?
0
votes
1answer
245 views

Why would we su without -? [duplicate]

When we do su John I switch as user John. When we do su - John I switch as user John having user John's environment. As far as I can see the first option is useless. What is the use of switching to ...
58
votes
4answers
120k views

dpkg cannot find ldconfig/start-stop-daemon in the PATH variable

I was trying to install bsd-mailx utility the package got installed however I am wondering about the error. This is the error I get: Preconfiguring packages ... dpkg: warning: 'ldconfig' not found ...
15
votes
6answers
43k views

Can I change root password by sudo, without su?

I can sudo, but I don't have the root password so I can't su root. Using sudo, can I change the root password?
6
votes
1answer
12k views

Setting the root PATH for su [duplicate]

When I am changing (on my debian box) to the root user with su, apparently the PATH is not correctly set. Some vital directories like usr/local/sbin are missing. In /etc/profile I have the following ...
4
votes
2answers
4k views

su vs su - (on Debian): why is PATH the same?

I know what should be the difference between su and su -, but in my system (Debian) for example PATH is the same: [root]# su [root]# echo $PATH /user_path/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:...
3
votes
3answers
13k views

No protocol specified: Unknown Error couldn't connect to display ":0" [closed]

I've installed Debian 8 since a week, but I can not run any graphical application from console with the root user. Infact, when I run xampp (or any other program) I get the following error root# /opt/...
0
votes
1answer
4k views

How to get the command line history of another user?

I currently have a server set up to save Bash history for every user immediately in their respective home folders and I want to create a script that runs on a set interval that switches the current ...
1
vote
1answer
542 views

Something confusing about "su -" and "su" [duplicate]

I am studying the Linux command line. But the book which I'm reading says that su -l(-) username is starting a new shell session and loading the environment of the user I want to change to, but su ...
1
vote
0answers
396 views

Xauthority for python plotting in a docker container

I'm trying to understand how to run a docker container with an X11 server running in it so that I can do visualizations when I write some python code, and found lots of answers out there. I found many ...
0
votes
1answer
179 views

Intel® Centrino® Advanced-N 6205 not found in Debian

I was installing Debian. But, I know that I have installed wireless connection system manually in Debian. But, I couldn't install wireless connection while installing Debian. I had connected Ethernet ...
0
votes
0answers
229 views

User Lastlog login datetime did not update

I use lastlog to check latest login datetime. Here are steps I use to update my latest login datetime. 1) Try to Login to that user sudo su userA 2) Exit that user and login to root then check ...