Koozali.org: home of the SME Server

User Access to html folder

Patrick

User Access to html folder
« on: July 25, 2002, 12:23:32 AM »
Hi guys,

I was wondering how to setup access right to just the html folder on the SME primary without having to give someone the admin password. I want to give the webmaster the ability to update the website without giving him rights to things he doesn't need.

Thanks,

Aurelien Derouineau

Re: User Access to html folder
« Reply #1 on: July 25, 2002, 04:59:27 AM »
I think you could change the chown and chmod of the html folder...

1) Using the server manager, create a group named webmasters for example:

2) Go on the shell and type:
chown /home/e-smith/files/primary/html admin.webmasters -R
chmod /home/e-smith/files/primary/html 0775 -R

The first line means that folder html will be owned by user admin and group webmasters.
And the second one means that:
- User has Read/Write/Execute Permissions
- Group has the same ones
- Everyone else has Read/Execute Permissions

ryan

Re: User Access to html folder
« Reply #2 on: July 25, 2002, 08:30:31 PM »
Thanks for this post, it will be helpful.  Will this allow access to the "html" folder using ftp or DreamWeaver to publish on an ibay virtual domain site from the internet?  If so, publish to what address?.....the virtual domain name, or the SMEexternal-IP/folder ??

I do not know how to view the 'html' folder of an ibay using ftp from the internet.  Using ibay@mydomain.com will allow a user to ftp read (not write) the 'files' directory in ibay not the 'html' folder?

Do webmasters on the internet have to use pptp vpn to publish from the local lan?

Any help is appreciated, as this would reduce my workload considerably.

Thanks in advance for any advice.

Ryan

Patrick

Re: User Access to html folder
« Reply #3 on: July 26, 2002, 05:23:43 AM »
Aurelien,

I tried your advice. After I enter chown /home/e-smith/files/primary/html admin.webmasters -R at the prompt, I get an invalid user error.

Any other Advice?

Guck Puppy

Re: User Access to html folder
« Reply #4 on: July 26, 2002, 05:31:02 AM »
> 2) Go on the shell and type:
> chown /home/e-smith/files/primary/html admin.webmasters -R
> chmod /home/e-smith/files/primary/html 0775 -R

shouldn't that be

chown -R admin.webmasters /home/e-smith/files/primary/html
chmod -R 0775 /home/e-smith/files/primary/html

?

But anyway, I wanted to mention that ftp write access to the primary web site from the wan is probably a Bad Idea.

You would be better off enabling public ssh (i.e. from the wan) that would then allow your webmaster to use SCP - or better yet RSYNC to upload changes to the public website.

G

Patrick

Re: User Access to html folder
« Reply #5 on: July 26, 2002, 05:54:44 AM »
thanks Guck Puppy, that worked....

The webmaster is only allowed to access the server from the LAN at this point. So I'm not worried until then.

Thanks again

Damjan

Re: User Access to html folder
« Reply #6 on: July 30, 2002, 06:21:10 PM »
Hello,

Who is the member of this webmaster group?
Admin?
Or some user which is created especially for that task?

Br
Damjan