chown of a Directory

Hi All,

I need your help in changing the owner of a directory.

I have a created a direcotry TEST with user "abc"....for the group "ftp".

Now i wnated to change the owner of the directory TEST.

i used the below command to do so:

chown abc:sftp TEST

This is giving me an error saying

chown: changing ownership of `out': Operation not permitted.

Can anyone help me out with the solution to reslove this.

Thanks in advance.

Are you running this command as root?

i am new to unix.....
so not sure i am answering correclty.....

I have logged in as the abc and went to the required path and was changing the ownership.

I think abc has to be member of sftp group to make it work.

1 Like

Can you please let me know how to make "abc" member of "sftp"

As root user run:

usermod -G sftp abc