- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- GNU chown exits after Operation not permitted
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2005 10:13 PM
08-31-2005 10:13 PM
GNU chown exits after Operation not permitted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2005 10:58 PM
08-31-2005 10:58 PM
Re: GNU chown exits after Operation not permitted
pwck
grpck
If those commands exist there may be a problem in the /etc/passwd or /etc/shadow or /etc/group file.
There may be a better message in /var/log/messages or dmesg output.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2005 11:05 PM
08-31-2005 11:05 PM
Re: GNU chown exits after Operation not permitted
==
[root@whdb3 root]# uname -a
Linux whdb3.americas.corp.timex.com 2.4.21-27.0.4.ELsmp #1 SMP Sat Apr 16 18:43:06 EDT 2005 i686 i686 i386 GNU/Linux
[root@whdb3 root]# pwck
user adm: directory /var/adm does not exist
user news: directory /etc/news does not exist
user uucp: directory /var/spool/uucp does not exist
user gopher: directory /var/gopher does not exist
user ident: directory /home/ident does not exist
user pcap: directory /var/arpwatch does not exist
pwck: no changes
[root@whdb3 root]# grpck
[root@whdb3 root]#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2005 11:21 PM
08-31-2005 11:21 PM
Re: GNU chown exits after Operation not permitted
which file you are trying to change? is it single file or group of files?
I believe you are trying this as root user, otherwise that is the problem, you have to run chown as root.
Are you running this from some sort of restricted shell?
Hope this helps,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2005 11:31 PM
08-31-2005 11:31 PM
Re: GNU chown exits after Operation not permitted
-rwxr-xr-x 1 akumar it 8 Sep 1 05:31 dfd
[akumar@whdb3 tmp]$ chown appldwp.dba dfd
chown: changing ownership of `dfd': Operation not permitted
[akumar@whdb3 tmp]$ id
uid=504(akumar) gid=501(it) groups=501(it),0(root)
[akumar@whdb3 tmp]$
========
The above will answer your most of the questions. root is able to run chown, but no one else. even when akumar is a member of root group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2005 11:42 PM
08-31-2005 11:42 PM
Re: GNU chown exits after Operation not permitted
the problem is simple, you need to run the chown as root user only.
changing of any file attributes is allowed only if the file is owned by the user or group (with write permission) or others(write permission is required). otherwise only root is allowed to modify.
Hope this helps,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2005 01:23 AM
09-01-2005 01:23 AM
Re: GNU chown exits after Operation not permitted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2005 01:59 AM
09-01-2005 01:59 AM
Re: GNU chown exits after Operation not permitted
If you want to share a file, you have two choises:
Create a directory with the right group membership, and set the SGID bit to the directory. Instruct users to create "shared" files there. Make users needing the files members of the same group.
Use SUDO to allow the use of chown command to users on they home directory only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2005 03:01 AM
09-01-2005 03:01 AM
Re: GNU chown exits after Operation not permitted
Hope I am clear to you this time,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2005 03:04 AM
09-01-2005 03:04 AM
Re: GNU chown exits after Operation not permitted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2005 03:29 AM
09-01-2005 03:29 AM
Re: GNU chown exits after Operation not permitted
You should read the User Private Group security scheme used by Linux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2005 05:31 PM
09-01-2005 05:31 PM
Re: GNU chown exits after Operation not permitted
Thanks to all.