chown command
i am apps-owner of a particular folder.
drwxrwxr_x 5 apps gen 4096 imgp1 now i want to change its group to apps. i give command as chgrp apps imgp1 but it says operation not permitted. also chown gen imgp1 is not permitted. who are allowed to give these commands |
Quote:
Only root and the owner of the file is allowed to change the group ownerships. You must be root to run this command successfully. |
Quote:
Best thing to do would be to issue the command as "sudo <command name>" |
hello
If you are a nonroot user you can change only that group to which you belong . I mean you are user apps. fire following command groups above command show the group or groups name to which you belong. |
Quote:
If a user belongs to "users, staff, video, cdrom", they can then change group ownership of a file/directory to be any one of those. Any group they don't belong to, needs root access. |
All times are GMT -5. The time now is 05:22 PM. |