Web Hosting Talk







View Full Version : Addind users on freeBSD


Starhost
02-14-2002, 06:16 AM
Hi all,

I'm writing my own CP for my freeBSD server. And now I have a problem and I just can't figure it out how to do it. The problem:


When I add a client (domain) to the server, a group is maded with for instance the name: site1. When I start adding users to that domain, they are all member of group "site1".

But how should I do it when I would like to give a user admin priveledges? That user should be able to overwrite excisting files and chmod them. Even if it isn't the owner of the file.

I could give all files 664 privledges, but in that case all users that are member of group "site1" can overwrite the files.

Could you people please help me with this?

ToastyX
02-14-2002, 08:09 AM
Try giving each user their own group, and chmod 664 all files. Then make the admin part of every user's group.

For example, user1 would be part of the group user1, user2 would be part of the group user2, user3 would be part of the group user3, and the admin would be part of the groups user1, user2, and user3.

Starhost
02-14-2002, 08:59 AM
This could be the option!

If other people know other OR better options on ho to do this, please post :-)

tom.oneil
02-17-2002, 04:58 AM
It sounds like you want to create a heirarchy inside the standard one, like a root user over only specific users.

If thats the case, set up jail and give them real root in their jail.

man jail, put on some coffee.:)

If you decide to to use the permissions approach, change the umask in the adduser.conf file to set it correctly instead of going back and changing things manually.



Tom