Adding Privoxy user for source build
Hi,
Wanted to know how to add a user for Privox. Aside from the obvious stuff like not having a shell. For example, in the shadow file I wish to make sure that the account not only has no shell, but no login capability. I am thinking /bin/false would do this; however, I need to make sure. Thanks |
Add a user like you would any other unprivileged one (with home = /etc/privoxy). /bin/false should do, mine has /sbin/nologin.
|
ok,
I actually wanted to see the account as a system account. Something like what you see in /etc/shado Code:
news:*:14889:0:99999:7::: So, I tried to user add with the following flags set as based on the man pages. ]CODE]useradd -D -M -U -s /bin/false Privoxy[/CODE] The above would not work at all. All I wish do is create a user with no /home, shell, or privlage to log-in to the machine. I guess this would be a system account. However, I guess I have the options wrong. Could you help please? Thanks. |
Hi again,
Just thought I would post this for anyone else that runs into this. I was able to get the privoxy user set up correctly by running Code:
adduser --system --shell /bin/false --no-create-home --group --disabled-login privoxy Code:
make -s install USER=privoxy GROUP=privoxy Hope this helps. |
This is how it works for me:
Code:
groupadd -g 73 privoxy Quote:
|
Quote:
|
No, "73" is the GID and UID (as 'man groupadd' and 'man useradd' should show) which you supply to "-g" and "-u". And using './configure --prefix=/usr/local' is quite different from 'useradd -d /etc/privoxy'. The first just prepares the build to be installed in a part of the file system while the latter just sets the users $HOME.
|
So 73 is a number you provided? Or, is "73" to GUID as 777 is to umask? Either way, you helped me solve it. Actually, the way you posted the solution seems to be more fine tuned. All my other questions are gonna start getting off topic. Thanks for all your help.
8) |
Number, yes. UID or GUID. Not a mask. Cool but don't forget to mark the thread solved.
|
All times are GMT -5. The time now is 01:20 AM. |