Can't run as root without the -u switch

FerdieQO

Well-known member
Joined
Jul 15, 2016
Messages
222
Points
28
When running a command on my VPS via SSH, I faced with this error

Code:
can't run as root without the -u switch
never get this error before. What it is? why causes this error and how to solve it?


Thanks
 

LJSHost

Well-known member
Hosting Provider
Registered
Joined
Jul 5, 2016
Messages
1,031
Points
63
What command are you trying to run ?
 

FerdieQO

Well-known member
Joined
Jul 15, 2016
Messages
222
Points
28
FerdieQO
I could not remember what software I installed on my VPS and got this error when running commands for them.
but sometimes it happened when I ran commands to config software, Its weird because I have faced this error years ago. For nextimes I will note down where I got this error.
 

mondoserv

New member
Registered
Joined
Nov 24, 2016
Messages
10
Points
0
the binary you are trying to run cannot be executed as root, it needs to be run as a user.
e.g. 'memcached -d -u nobody -m 1024 -l 127.0.0.1 -p 11211' memcached runs as user 'nobody'
 

miken

Member
Registered
Joined
Feb 6, 2015
Messages
61
Points
8
Some VPS providers might require you to login to an account (an administrator account) that they provided you, after that you need to use -u switch to log into root account.
I have ever used this way on a VPS provider in the past but never do it again with current VPS providers recent years.
 

qbeststar

Well-known member
Hosting Provider
Registered
Joined
May 6, 2017
Messages
120
Points
18
When running a command on my VPS via SSH, I faced with this error

Code:
can't run as root without the -u switch
never get this error before. What it is? why causes this error and how to solve it?


Thanks

Hi.

When you enter login to SSH , did you use "root" ?
 

well-web

Member
Registered
Joined
Jan 15, 2018
Messages
64
Points
8
May be your OS Ubuntu/Debian
Try, please:

"sudo need_commnand"
and put your root pass.
 
Latest Threads
Replies
1
Views
26
Replies
0
Views
189
Replies
1
Views
40
Replies
2
Views
83
Recommended Threads
Replies
4
Views
1,967
Replies
10
Views
5,737
Replies
3
Views
2,651

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top