![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
try doing in in single user mode.
#init S |
|
#3
|
|||
|
|||
|
Quote:
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
|
|||
|
|||
|
chown root:root login
have you tried this one? |
|
#5
|
|||
|
|||
|
Quote:
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
|
||||
|
||||
|
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
|
|||
|
|||
|
Quote:
Not working |
|||
| Google The UNIX and Linux Forums |