Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2001
    Posts
    1,310

    file permissions

    Hi,

    If I (for example) have a file like this:

    drwxr-xr-x 2 httpd site1 2048 Sep 11 00:51 stats

    You can change the permissions (ownership) of the file by using the chown command. No problem.
    But what is the second line? (site1) and how do I change THAT?

  2. #2
    Join Date
    Apr 2001
    Location
    Depok, Indonesia
    Posts
    988
    chgrp, or use chown username.groupname (dot between username and group name)

    edit: chmod should be chown
    Last edited by priyadi; 09-24-2002 at 06:57 AM.

  3. #3
    Join Date
    Jul 2002
    Location
    Malaysia
    Posts
    698
    Hello,

    You may change it also when you use the chown cpmmand :

    chown owner:groupname filename

  4. #4
    Join Date
    Sep 2002
    Location
    Berkeley, CA
    Posts
    6
    Originally posted by priyadi
    chgrp, or use chmod username.groupname (dot between username and group name)

    "STUPID CHMOD TRICKS!!!"

    just remember your permissions go user, group, other.....so if you have

    d------r-- 2 httpd site1 2048 Sep 11 00:51 stats

    then only users who are not httpd, and who are not in group site1, will be able to read it


    = P

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •