LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   chown (https://www.linuxquestions.org/questions/solaris-opensolaris-20/chown-596466/)

rust8y 11-01-2007 06:47 PM

chown
 
I am running Solaris 9. When I su as root, I want to change ownership of this directory /devbox to adminuser. How do I do this?


root@prod # cd /devbox
root@prod # ls -la
total 20
drwxr-xr-x 2 root other 512 Nov 2 10:13 .
drwxr-xr-x 41 root root 1536 Nov 2 10:38 ..
root@prod #

686plus 11-01-2007 07:24 PM

chown adminuser /devbox

To change the group to adminuser as well:

chown adminuser:adminuser /devbox

To change the directory and everything in it, as well as group:

chown -R adminuser:adminuser /devbox

rust8y 11-01-2007 08:31 PM

Comes back with the error message:

chown: /devbox: Not owner

jlliagre 11-02-2007 04:04 PM

Either you aren't root or the directory is remote.


All times are GMT -5. The time now is 09:24 PM.