The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Change owner. senthil_is Shell Programming and Scripting 3 05-24-2008 04:52 AM
Owner of file gets 'not owner' error for chgrp brizrobbo SUN Solaris 4 12-18-2007 05:30 PM
change owner panknil Shell Programming and Scripting 7 11-06-2007 05:07 PM
How to change the owner of the file? redlotus72 UNIX for Dummies Questions & Answers 1 09-21-2006 11:31 PM
Can't change owner and group of a linux file bache_gowda UNIX for Dummies Questions & Answers 7 06-26-2003 10:08 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-03-2007
CBarraford CBarraford is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 17
change owner of a file

im running into changing the ownership of a file. I am trying to change the ownership to "system", but it doesn't want to work. I

Code:
sudo chown system /preferences.plist 
Password:
chown: system: Invalid argument
is there a way to read the ownership of a file, something like
Code:
read chown /preferences.plist
????
  #2 (permalink)  
Old 03-03-2007
cfajohnson's Avatar
cfajohnson cfajohnson is offline Forum Advisor  
Shell programmer, author
  
 

Join Date: Mar 2007
Location: Toronto, Canada
Posts: 2,361
Quote:
Originally Posted by CBarraford
im running into changing the ownership of a file. I am trying to change the ownership to "system", but it doesn't want to work. I

Code:
sudo chown system /preferences.plist 
Password:
chown: system: Invalid argument
Do you have a user called "system"?

Quote:
is there a way to read the ownership of a file, something like
Code:
read chown /preferences.plist
????
Code:
ls -l /preferences.plist
  #3 (permalink)  
Old 03-03-2007
michaelnas michaelnas is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 10
list attribute list (ls -al) should give you the permissions on the folder your attempting to change ownership
  #4 (permalink)  
Old 03-03-2007
CBarraford CBarraford is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 17
hey cjajohnson
thanks for your help. I thought there was a "system" user because when i go to get info (im on a mac), it says "system" under owner

when i ran the code "ls -l" on the file, it came up owned by root and not system. Shame on you apple for misleading me.

thanks again cja
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0