0
votes
1answer
55 views

user privileges ldap scheme

I needed to create a user (it's already created) in my LDAP schema and want to give privileges of reading/writing to that user like if they were the admin but just for a specific subtree. The thing ...
0
votes
4answers
895 views

The opposite of su: run a command without root privileges

I'm writing a shell script where most commands don't require root privileges. The script should be ran by the administrator. But I would like to be able to "su" to a normal user account for the parts ...
0
votes
1answer
93 views

Recovering mysql user table

I accidentally deleted the records from the mysql.user table on my mysql server. I didn't flush the privileges yet so I have the root privilege. Is there a way to recover the table or to create the ...
0
votes
1answer
169 views

User's privilegies (Mysql, Nginx, Php-fpm)

got questions of unsuccessful searches 1 - Why almost every software should run with its own user, is so simple run everything with a single user, why no one do that ? 2 - Why can't I just set the ...
1
vote
6answers
416 views

Firefox execution fails from a root executed script with privilege drop

I can't run firefox from a sudoed python script that drops privileges to normal user. If i write # sudo python >>> import os >>> import pwd, grp >>> uid = pwd.getpwnam('norby')[2] >>> gid = ...