Can't run as root without the -u switch

FerdieQO

Well-known member
Joined
Jul 15, 2016
Messages
138
Best answers
0
Ratings
14
Points
18
#1
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
Joined
Jul 5, 2016
Messages
1,031
Best answers
0
Ratings
202
Points
63
#2
What command are you trying to run ?
 

FerdieQO

Well-known member
Joined
Jul 15, 2016
Messages
138
Best answers
0
Ratings
14
Points
18
#3
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
Joined
Nov 24, 2016
Messages
10
Best answers
0
Ratings
1
Points
0
#4
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'
 
Joined
Feb 6, 2015
Messages
55
Best answers
0
Ratings
4
Points
8
#5
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
Joined
May 6, 2017
Messages
116
Best answers
0
Ratings
8
Points
18
#6
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" ?
 
Latest Threads
Replies
1
Views
11
Replies
0
Views
12
Recommended Threads
Similar Threads
Replies
9
Views
2,478
Replies
16
Views
1,258
Replies
9
Views
949
fwh

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

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