LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 11-01-2007, 06:47 PM   #1
rust8y
Member
 
Registered: May 2006
Posts: 100

Rep: Reputation: 15
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 #
 
Old 11-01-2007, 07:24 PM   #2
686plus
Member
 
Registered: Nov 2004
Location: Portland, Oregon
Distribution: Ubuntu
Posts: 114

Rep: Reputation: 17
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
 
Old 11-01-2007, 08:31 PM   #3
rust8y
Member
 
Registered: May 2006
Posts: 100

Original Poster
Rep: Reputation: 15
Comes back with the error message:

chown: /devbox: Not owner
 
Old 11-02-2007, 04:04 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Either you aren't root or the directory is remote.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
chown strycnine Slackware 5 12-07-2006 09:39 AM
chown lsu420luv Linux - Newbie 3 04-18-2006 05:08 PM
chown loopoo Linux - Newbie 5 08-09-2005 09:38 AM
chown -R ujotne Programming 3 02-25-2004 12:02 PM
chown Sathe Linux - General 13 10-14-2002 11:25 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration