The UNIX and Linux Forums  

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
How to set the name of the group and the owner while creation of the file? nehak UNIX for Dummies Questions & Answers 2 04-23-2008 05:26 AM
File Owner/Group through Shell Script rahulrathod Shell Programming and Scripting 1 02-26-2008 11:45 AM
change owner of a file CBarraford UNIX for Dummies Questions & Answers 3 03-03-2007 08:37 PM
How to change the owner of the file? redlotus72 UNIX for Dummies Questions & Answers 1 09-21-2006 08:31 PM
owner and group in Linux lapnguyen UNIX for Dummies Questions & Answers 1 07-16-2002 07:55 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-22-2003
Registered User
 

Join Date: Sep 2001
Posts: 67
Can't change owner and group of a linux file

Hi,

I don't know how the owner & group of a login file in redhat linux 7.2 changed to bache like,
-rwxr-xr-x 1 bache bache 17740 Jun 20 02:05 login

I am trying to change the owner and group to root by using
#chown root login
#chgrp root login
But i am getting the error
chown: changing ownership of 'login': Operation not permitted

Pl can i know the reason and solution for the same.
I am waiting for your valuable response.

Thanks,
Bache
Forum Sponsor
  #2  
Old 06-22-2003
Registered User
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
try doing in in single user mode.
#init S
  #3  
Old 06-22-2003
Registered User
 

Join Date: Sep 2001
Posts: 67
Quote:
Originally posted by norsk hedensk
try doing in in single user mode.
#init S
I tried in single user mode also, here also same error.
If i copy login file from some other linux m/c whether it will works or not or how to reinstall login package.

Thanks,
bache
  #4  
Old 06-22-2003
Registered User
 

Join Date: Jun 2003
Posts: 2
chown root:root login

have you tried this one?
  #5  
Old 06-22-2003
Registered User
 

Join Date: Sep 2001
Posts: 67
Quote:
Originally posted by thomas anderson
chown root:root login

have you tried this one?

root@thambura bin]# chown root:root login
chown: changing ownership of `login': Operation not permitted

[root@thambura bin]# ls -lt login
-rwxr-xr-x 1 bache bache 17740 Jun 20 02:05 login

Same error, Any other method to change
  #6  
Old 06-23-2003
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Try the following:

# su - bache
$ cd /bin
$ ls -lt login
-rwxr-xr-x 1 bache bache 17740 Jun 20 02:05 login
$ chown root:root login
$
  #7  
Old 06-26-2003
Registered User
 

Join Date: Sep 2001
Posts: 67
Quote:
Originally posted by RTM
Try the following:

# su - bache
$ cd /bin
$ ls -lt login
-rwxr-xr-x 1 bache bache 17740 Jun 20 02:05 login
$ chown root:root login
$
Again same error has above
Not working
Google The UNIX and Linux Forums
Closed Thread

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:50 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0