A
A
Anatoly2016-10-11 15:04:44
FreeBSD
Anatoly, 2016-10-11 15:04:44

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
$

For clarity, under root
[email protected]:~ # cd /data
[email protected]:/data #

How to change user rights so that you can fully work with the site?
Let it be possible not everything that can be rooted. Installations from under the root are completed, now a simple user should enter the battle.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
athacker, 2016-10-11
@Skit25

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 question

Ask a Question

731 491 924 answers to any question