Granting a group rights to access a particular directory?
Posted on 2004-04-13
I would like to know how to add a user to a group. And then, grant that group access or rights (rwx) to a particular directory.
My problem is that I have many different remote users who need to use ftp to add and remove files from many different directories. These directories are websites or they hold the files that make up the website. I don't want the users to be able to access each others directories. I would like to know how to create the user, set\restrict the path to a particular directory for that user. Create a group that has rwx previlages to that directory. Add the user to that group. In some instances I have four or five users who need access to the directory.
The o/s is Solaris v5.6. The web server is Apache. I'm familar with the useradd, groupadd, chmod, commands, the startup files /etc/profile, /export/home/username/.profile. I've read about the umask, setuid, and setgid commands.
I'm an old Netware hand v2 through 6, but I'm really struggling on the Unix platform with what is such a simple task in Netware.