Can't run as root without the -u switch

FerdieQO

Well-known member
Joined
Jul 15, 2016
Messages
208
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
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
208
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
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
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
Joined
May 6, 2017
Messages
116
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" ?
 
Latest Threads
  • Awaiting approval
Replies
0
Views
1
Replies
1
Views
36
Replies
2
Views
32
Replies
1
Views
45
Replies
0
Views
46
Recommended Threads
Replies
0
Views
1,252
Replies
11
Views
3,401
Replies
6
Views
941

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