Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Permissions to an User

Status
Not open for further replies.

egmweb

Programmer
Mar 19, 2004
147
EU
Hello all.

We have Fedora core 2 and plesk 7.5 reloaded.

We created a domain and works perfectly, We also creates some Web User.

We need to set permissions to the main account for an specific domain to add, delete, edit folders and content in each web user folders for this domain.

For example:
We have created a domain "mydomain.com" and the default user to manage the domain features is "useradm".
We also create 2 web users: "web1" and "web2"

When the web user "web1" logging into their fto folder, they can Upload files and folders.

Then when The admin account "useradm" tries to delete some folder in web user folder of "web1" for maintaince it had an error like permission denied.

How can We set the permissions to the account "useradm" to administer and maintaince the folders and the content of web users??

This is a require of our customers very urgent, because the web users created in the domains of our customers are in others countries and they need to have an main account to have the availability to delete webusers folders and files for maintaince.

Thanks you.
 
I don't know anything about plesk, but if you can somehow configure it to change the default umask from 022 to 002 then files and folders will be created with group write access by default.

Then you can add web1, web2 and useradm to the same group and they will have access to modify or remove files created by other users in that group.

Annihilannic.
 
Thanks you Annihilannic, but I'm really new on Linux.

Would you please help me step by step how can I do that?

Thanks you.

Eduard.
 
Hi,
'useradm' should have rwx(7) permissions to the folder.
execute 'ls -l' and see what are the permissions set on the directory.( well in *ix its directoty and not folder :))
Then login as root ( 'useradm' in your case ?) and execute chmod command.
typically the permissons should be 0755 but that depends on your needs.


--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
 
Hi spookie,

I have a folder in my server called web_users... and inside this folder I have all folders for each ftp user.

I have an account "usradmin" to maintaince this domain only... but when I change the permissons to this folder to 777, this user can enter, but he cannot access to folders of each ftp users because the owner of each folder is each ftp user.

So I need this "usradmin" can modify the content of each folder in web_users content.

I also cannot give root access to "usradmin" because when they login into plesk control panel... they will see all domains that I have configured for other customers.

Thanks you.
 
man groupadd to find out about adding a group.

man usermod to find out about modifying users to be members of that group.

You shouldn't use 777 because that will give everyone access to the folders, just use chgrp to change the "group ownership" of the folder and then use mode 775 or 770 (i.e. drwxrwxr-x or drwxrwx---).

As for setting the umask, I can't describe how to do that as you will need to do it either in your web server configuration (if that's what creates the files) or in plesk, whatever that is.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top