Activity Stream
48,167 MEMBERS
6813 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 6 of 6
  1.     
    #1
    Member

    Default SSH command to change file ownership

    Hello friends,

    Can someone help me?
    Im having problems in some files at my FTP.
    When I access to my FTP I notice that some files have ownership 522 518 and others have ownership 99 99.
    The correct is 522 518 and I would like to change all files in my uploaded folder to 522 518.

    Can someone please tell me what is the SSH command to make that happen?

    Thank you
    Divvy Reviewed by Divvy on . SSH commando to change file ownership Hello friends, Can someone help me? Im having problems in some files at my FTP. When I access to my FTP I notice that some files have ownership 522 518 and others have ownership 99 99. The correct is 522 518 and I would like to change all files in my uploaded folder to 522 518. Can someone please tell me what is the SSH command to make that happen? Thank you :) Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Change ownership to one file
    Code: 
    chown user:group /path/to/file
    Change ownership recursively inside a folder
    Code: 
    chown -R user:group /path/to/folder/
    btw, chown - change ownership

  4.     
    #3
    Member
    Thank you!

    So If my usarname is for example test, the command will be:
    Code: 
    chown -R test:group /public_html/uploaded
    right? or I need to change group to something?

  5.     
    #4
    Member
    You also need to put in the right group -- if you're running cPanel for example, it's the same as the user. In your case, chown -R 522:518 public_html/uploaded should work

  6.     
    #5
    Member
    Fixed! Thank you my friend

  7.     
    #6
    Member
    Glad to help

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Proper file/folder ownership
    By Hillside in forum Technical Help Desk Support
    Replies: 2
    Last Post: 12th Apr 2011, 03:42 PM
  2. Replies: 1
    Last Post: 18th Sep 2010, 12:56 PM
  3. Replies: 2
    Last Post: 10th Nov 2009, 11:43 AM
  4. Can I change MD5Hash of a file if I use rapidlech
    By jamesrocky in forum General Discussion
    Replies: 4
    Last Post: 31st Oct 2009, 11:49 AM
  5. Change of ownership : skankd.net
    By Foxy in forum Webmaster Discussion
    Replies: 4
    Last Post: 14th Jul 2009, 08:28 AM

Tags for this Thread

BE SOCIAL