Re; [techtalk] Permissions

Lilly S. lilly at shellyeah.org
Mon Jun 19 10:00:09 EST 2000


Followup to this post...

Does anyone have a reference that tells what files need to be what? For
example, what permissions do CGI files need to be? How about the cgi-bin
directory? And the html or public_html directory?

Thanks,

Lilly

On Mon, 19 Jun 2000 terry at scruznet.com wrote:

> As Robert said, the O'Reilly books are great.
> I have Linux in a Nutshell from O'Reilly and learned
> an easier way to change permissions than what I had been
> using.  The idea is just to say what you want the
> permissions to be for user, group, and other.  Here's
> some examples:
> 
> /home/terry/temp>ls -la
> total 16
> drwxr-xr-x   2 terry    users        4096 Jun 19 00:56 .
> drwx------  10 terry    users        4096 Jun 19 00:55 ..
> -rw-r--r--   1 terry    users           9 Jun 19 00:56 file_one
> -rw-r--r--   1 terry    users          11 Jun 19 00:56 file_two
>                                                                                                                       
> /home/terry/temp>chmod u=rwx, g=rw, o=x file_one
> chmod: g=rw,: No such file or directory
> chmod: o=x: No such file or directory
> 
> (Oops, I guess it doesn't like spaces- try
> again)                                                                                                                      
> /home/terry/temp>chmod u=rwx,g=rw,o=x file_one
> 
> (Meaning that I,user, can read write xecute, group can read write, other
> can execute)  
> /home/terry/temp>ls -la
> total 16
> drwxr-xr-x   2 terry    users        4096 Jun 19 00:56 .
> drwx------  10 terry    users        4096 Jun 19 00:55 ..
> -rwxrw---x   1 terry    users           9 Jun 19 00:56 file_one
> -rw-r--r--   1 terry    users          11 Jun 19 00:56 file_two
> 
> (It worked!)
> 
> /home/terry/temp>chmod u=rw *
> 
> (user can read and write all files in directory)
> /home/terry/temp>ls -la
> total 16
> drwxr-xr-x   2 terry    users        4096 Jun 19 01:14 .
> drwx------  10 terry    users        4096 Jun 19 00:55 ..
> -rw------x   1 terry    users           9 Jun 19 00:56 file_one
> -rw-------   1 terry    users          11 Jun 19 00:56 file_two
> 
> /home/terry/temp>chmod g=  *
> (group cannot do anything to any files - leaving a blank removes
> permissions)
> 
> /home/terry/temp>ls -la
> total 16
> drwxr-xr-x   2 terry    users        4096 Jun 19 01:14 .
> drwx------  10 terry    users        4096 Jun 19 00:55 ..
> -rw------x   1 terry    users           9 Jun 19 00:56 file_one
> -rw-------   1 terry    users          11 Jun 19 00:56 file_two
> 
> 
> 
> 
> Carolyn Jarie Getter wrote:
> > 
> > Someone please tell me there exists an explanation of file and directory
> 
>      -snip-
> > 
> > Carolyn
> > 
> > _______________________________________________
> > techtalk mailing list
> > techtalk at linuxchix.org
> > http://www.linux.org.uk/mailman/listinfo/techtalk
> 
> 
> _______________________________________________
> techtalk mailing list
> techtalk at linuxchix.org
> http://www.linux.org.uk/mailman/listinfo/techtalk
> 






More information about the Techtalk mailing list