-
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
![Quote](images/misc/quote_icon.png)
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.
![Quote](images/misc/quote_icon.png)
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)
![Quote](images/misc/quote_icon.png)
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.
![Quote](images/misc/quote_icon.png)
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
![Dell X1018 X-Series Smart Managed Switches 16-Port Gigabit 2-Port SFP Switch picture](/store/img/-yUAAOSw-JVlyRj9/s-l225//Dell-X1018-X-Series-Smart-Managed-Switches-16-Port.jpg)
Dell X1018 X-Series Smart Managed Switches 16-Port Gigabit 2-Port SFP Switch
$42.00
![Cisco Catalyst WS-C2960X-24PS-L 24 Port Managed Gigabit Ethernet Network Switch picture](/store/img/RfkAAOSwN~diSwHn/s-l225//Cisco-Catalyst-WS-C2960X-24PS-L-24-Port-Managed-Gi.jpg)
Cisco Catalyst WS-C2960X-24PS-L 24 Port Managed Gigabit Ethernet Network Switch
$59.99
![Cisco Catalyst WS-C3650-24PS-L 24-Port Gigabit Ethernet Network Switch TESTED picture](/store/img/prIAAOSwkfFmDHF2/s-l225//Cisco-Catalyst-WS-C3650-24PS-L-24-Port-Gigabit-Eth.jpg)
Cisco Catalyst WS-C3650-24PS-L 24-Port Gigabit Ethernet Network Switch TESTED
$49.99
![Dell PowerConnect 6224 Rackmount 24-Port Gigabit Managed Ethernet Network Switch picture](/store/img/ffsAAOSwMPZmYel9/s-l225//Dell-PowerConnect-6224-Rackmount-24-Port-Gigabit-M.jpg)
Dell PowerConnect 6224 Rackmount 24-Port Gigabit Managed Ethernet Network Switch
$31.99
![TP-Link Metal 8-Port Gigabit Ethernet Switch Fanless Unmanaged L2+ TL-SG108(UN) picture](/store/img/ftkAAOSwbYVmGs9u/s-l225//TP-Link-Metal-8-Port-Gigabit-Ethernet-Switch-Fanle.jpg)
TP-Link Metal 8-Port Gigabit Ethernet Switch Fanless Unmanaged L2+ TL-SG108(UN)
$15.00
![TP-LINK TL-SG108 8-Port Switch 10/100Mbps Switch picture](/store/img/WJgAAOSw~XJmmBQ~/s-l225//TP-LINK-TL-SG108-8-Port-Switch-10-100Mbps-Switch.jpg)
TP-LINK TL-SG108 8-Port Switch 10/100Mbps Switch
$10.00
![TP-LINK TL-SF1005D 5-Port 10/100Mbps Desktop Switch picture](/store/img/EwEAAOSwOZpjOzYc/s-l225//TP-LINK-TL-SF1005D-5-Port-10-100Mbps-Desktop-Switc.jpg)
TP-LINK TL-SF1005D 5-Port 10/100Mbps Desktop Switch
$8.99
![NETGEAR GS305E 5-Port Gigabit Ethernet SOHO Plus Switch picture](/store/img/AkkAAOSwEvpg2txh/s-l225//NETGEAR-GS305E-5-Port-Gigabit-Ethernet-SOHO-Plus-S.jpg)
NETGEAR GS305E 5-Port Gigabit Ethernet SOHO Plus Switch
$5.99
![Cisco Nexus 9300 48-Port 25GbE SFP 6x100GbE QSFP Switch P/N: N9K-C93180YC-EX picture](/store/img/1RkAAOSwPABmkW20/s-l225//Cisco-Nexus-9300-48-Port-25GbE-SFP-6x100GbE-QSFP-S.jpg)
Cisco Nexus 9300 48-Port 25GbE SFP 6x100GbE QSFP Switch P/N: N9K-C93180YC-EX
$499.99
![Cisco Small business SG300-28P Managed 28 Port Gigabit Ethernet Switch picture](/store/img/QjwAAOSwuoZhsiTu/s-l225//Cisco-Small-business-SG300-28P-Managed-28-Port-Gig.jpg)
Cisco Small business SG300-28P Managed 28 Port Gigabit Ethernet Switch
$67.95