Answer the question
In order to leave comments, you need to log in
FreeBDS, how to work not as root?
Good!
I go to the server via ssh. I raise my rights. su -l
I run composer, it gives a message so that I don't work as root.
And then I found out that my user does not have any rights at all, I can’t even change the directory. Although included in the wheel group.
$ id noname
uid=1001(noname) gid=0(wheel) groups=0(wheel)
$ cd /data/sites/yii/htdocs/frontend/web
$
[email protected]:~ # cd /data
[email protected]:/data #
Answer the question
In order to leave comments, you need to log in
Just because your prompt doesn't show the current directory doesn't mean you can't go there :-) Copy the line prompt from the /root/.cshrc file, and paste it into the .cshrc file in your user profile, then do source .cshrc, and you'll see the current directory in the prompt :-)
As for permissions -- what specific permissions are you missing? If you can't enter directories - well, arrange the rights on the file system so that your user account has such rights. And if you cannot run some programs, there is a sudo utility for this, you just need to install and configure it. And then you can run everything as "sudo another-command-that-should-run-as-root"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question