LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   user/group permissions (https://www.linuxquestions.org/questions/linux-newbie-8/user-group-permissions-2342/)

Diane Welch 05-07-2001 02:07 PM

Help!

We've got a couple of mirrored Linux machines acting as servers for an ISP. (I must warn you: I am very much a Linux newbie.) I have gotten used to setting up regular new users, who just need to be able to access their web space, but now I have to deal with something new -- to me, that is.

We have our main website on an NT server. We have a company putting in some CGI scripts for the site. The person writing the CGI scripts is comfortable with Linux, but not with NT. I, too, have had trouble getting CGI scripts to work on an NT machine, and I have been putting the scripts on our Linux machines, and just pointing the forms to the cgi-bin on the Linux machines.

I have never tried to give anyone else permission to access the cgi-bin. I have created a user account, and put it in a group.

Now what????

Diane Welch

webtoe 05-07-2001 03:20 PM

you have to change the directory that you want this group to access.

type as root 'chgrp group /route/to/folder'
where group is the name of the group you want to give access to this folder.

i can;t remember if it is chgrp or some variation of that. type 'man chgrp' first. if you get a nice man page telling you bout it then you're sorted

now in this folder should be owned by the aforementioned group.

type 'ls -l' in the parent directory of the folder and check the permissions of the folder. it'll look something like this

dxrw-rw-r-

this would allow the user who owns the folder to execute, read and write and people in the group to read and write and others to read.

you want to make sure that only the user can read, write and execute, the group can read and write and execute (you can get rid of ne of these for the group if you think that group will never use it).

to stop others from being able to do nething type as root

'chmod o-rxw /folder/ '

that should do the trick.


please correct me if im wrong

:-)

Alex

trickykid 05-07-2001 04:30 PM

Just to add, you can man chmod and read the manual pages on the chmod command and all of its options. But webtoe pretty much hit the spot.

Diane Welch 05-08-2001 07:03 AM

user/group permssions
 
That worked like a charm, Alex. Thank you and trickykid.

Diane


All times are GMT -5. The time now is 03:38 AM.