Results 1 to 4 of 4
  1. #1
    webstar is offline Member
    Join Date
    Sep 2010
    Posts
    50

    Thumbs up Setting permissions for Users

    Setting permissions for Users
    You may set the permissions for users using the chmod command.
    chmod 666 -R /tmp
    this sets a permission of 666 to the user for all files within the /tmp directory.
    You may likewise change the ownership of directories/files using the chown command
    chown rabbit:rabbit /tmp
    ------------------------------------------------------------------------------------
    ComputerName:~# mkdir /tmp/testshare
    ComputerName:~# chown -R user /tmp/testshare
    ComputerName:~# chgrp -R users /tmp/testshare
    ComputerName:~# chmod -R 700 /tmp/testshare
    ComputerName:~# ls -la /tmp
    drwx------ 2 user users 4096 Oct 30 10:10 testshare
    ----------------------------------------------------------------------------------------

  2. #2
    webstar is offline Member
    Join Date
    Sep 2010
    Posts
    50
    List quotas:
    quota -u user_id

    For example: quota -u user1
    System response:

    Disk quotas for user user1 (uid 501):
    Filesystem blocks quota limit grace files quota limit grace
    /dev/hda6 992 50000 55000 71 10000 11000


    If this does not respond similar to the above, then restart the computer: shutdown -r now

    Man page: quota - display disk usage and limits

  3. #3
    SetupLink is offline Newbie
    Join Date
    Sep 2010
    Posts
    2
    i use: chown 755 filename.php in SSH

  4. #4
    SiberForum is offline WHC Administrator
    Join Date
    Dec 2007
    Posts
    1,618
    I suppose that you need to specify what web hosting solution are you talking about in here? Is that dedicated server?

Posting Permissions

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