-
Junior Member
registered user
setgid: operation not permitted
I'm new to linux based systems and more especially the linux commands.
The last time I ran shell I put the command "chown -hR jathenry /". I was hoping to switch all the file owner ship and permissions over to that account.
That didn't work. I ran shell typed "su", typed my password and now it gives me this error:
setgid: operation not permitted
How can i fix this? And also transfer ownership, or share ownership with root with the permissions?
Thanks,
-
Senior Member
registered user
Re: setgid: operation not permitted

Originally Posted by
tymlls05
I'm new to linux based systems and more especially the linux commands.
The last time I ran shell I put the command "chown -hR jathenry /". I was hoping to switch all the file owner ship and permissions over to that account.
If you did that from root-shell, then most likely it DID work, but that was quite stupid thing to do because there are certain system-files which must be owned by root (or one of the other special user-accounts) for the system to work.

Originally Posted by
tymlls05
That didn't work. I ran shell typed "su", typed my password and now it gives me this error:
setgid: operation not permitted
The reason for this most likely is that after you changed the ownerships, some of the files which "su" needs, now have wrong ownership, and so you can't use "su" anymore.
(As a test I changed the ownership of just two files: /bin/su and /usr/bin/sudo and after that "su" didn't work anymore, even if I got different error than you got)

Originally Posted by
tymlls05
How can i fix this?
Easiest way to fix this might be to reinstall Linux.
Other way would be to restore all file-ownerships and other things (like setgid/setuid bits) to how they were before you run the "chown -hR jathenry /" command.
Well, at least you now know that there are certain commands which are dangerous when used from root-shell.

Originally Posted by
tymlls05
And also transfer ownership, or share ownership with root with the permissions?
There are some files for which you must not transfer the ownership for the system to work.
Why did you want to do that?
Similar Threads
-
By sniper in forum General Support
Replies: 2
Last Post: 08-27-2004, 05:59 AM
-
By sniper in forum General Support
Replies: 0
Last Post: 08-26-2004, 10:17 AM
-
By cfish in forum General Support
Replies: 1
Last Post: 08-07-2004, 08:58 AM
-
By kucz in forum General Support
Replies: 1
Last Post: 05-03-2004, 12:24 PM
-
By CyberDork in forum Laptops
Replies: 7
Last Post: 04-06-2004, 08:35 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Toshiba Magnia SG20 VPN Linux server Web server (No HDD, *Read*) -
$60.00

Sun Enterprise e450 400mhz cpu(x4), 4gb ram, 9gb HD w/spud most complete on ebay
$600.00

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN
$125.00

Ubuntu 26.04 LTS – 3 DVD Set Desktop - Server - Studio Edition - Grade AAA+
$13.99

Hitachi 14TB SATA 6Gb/s, 3.5”, 7200 RPM, Linux Only Hard Drive. 100% HEALTH.
$189.95

All New Ubuntu 26.04 LTS Linux Bootable USB Flash Drive
$15.95

Start9 Server Pure 32GB 4TB Intel i7 Node StartOS — Box + PSU
$699.00

Linux Mint AI Deep Learning PC Workstation Ryzen 5 24gb Ram 16gb Tesla P100 GPU
$599.99

HP ProLiant DL360P G8 Server 2.60Ghz 16-Core 96GB 2X 300GB Enterprise (Renewed)
$140.00

Microsoft SQL Server 2025 Standard 32 Core Unlimited User CALs CoA Authentic
$388.00