-
Senior Member
registered user
How do I Undo a "chmod -R 777 on my /etc directory?
Hello....I had done chmod -R 777 /etc and the problem is, I cannot begin to configure my desktop computer to network with my laptop cause when I do this:
dpkg-reconfigure ssh
/etc/init.d/ssh start
i get error saying my permissions on that folder are too open and it will not let me use ssh.
How can I change the permissions on my /etc folder back to default permissions? thank you
-
Senior Member
registered user
Re: How do I Undo a "chmod -R 777 on my /etc directory?
>>
Hello....I had done chmod -R 777 /etc and the
problem is, I cannot begin to configure my
desktop computer to network with my laptop cause
when I do this:
dpkg-reconfigure ssh
/etc/init.d/ssh start
i get error saying my permissions on that folder
are too open and it will not let me use ssh.
How can I change the permissions on my /etc folder
back to default permissions? thank you ![Embarassed](images/smilies/icon_redface.gif)
>>
bob58...
hmmmmmmm....
The hard way, more than likely. You did a recursive
change mode. Setting everything "rwe". Not a
good idea.
You could try doing the recovery in a number of
steps, that is, firstly do...
]# chmod 754 -R /etc
Then go through each directory and make adjustments.
The directories can be set to "755",
non-recursive. Set the files to "544". Some
files will need to be set to "500", such as
lilo.conf, and other related security things.
I like to kill all world access to directories/files myself.
You may need to do a...
]$ dpkg -S path_to_file
to find the various packages that files belong
to. Then actually look into the packages to
find their default permissions. But you will need
actual packages to work with there.
Or, find another box some where that you can
template it off, which may be a better idea.
That means pen and paper of course.
You must have done that as "root".
That's a good example of why we do not use our
"root" account unless absolutly neccessary, buddy !!!!!
If you have the Knoppix LiveCD handy, you
could boot that up, mount your somewhat "open"
system, and then use the default permissions from
the ramdisk knoppix image to template a
re-permissioning of your dedicated /etc directory.
That may be the easiest way to do it.
LiveCD's can be handy things, no ?
A dual pane file manager will help there too (filerunner)
Good Luck.
jm
Similar Threads
-
By jiohdi in forum MS Windows & New to Linux
Replies: 4
Last Post: 03-02-2005, 02:44 PM
-
By Honkeychops in forum General Support
Replies: 0
Last Post: 05-01-2004, 05:23 AM
-
By LinuxGeek in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 12-20-2003, 07:30 PM
-
By ollisoft in forum General Support
Replies: 3
Last Post: 12-18-2003, 03:44 AM
-
By kiwiguy in forum Ideas
Replies: 3
Last Post: 09-21-2003, 07:20 AM
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
![Nutanix NXS2U2NL12G500 2U Server with 2x X10DRT-P-G5-NI22 Blades USED picture](/store/img/OvwAAOSwhA1miCsZ/s-l225//Nutanix-NXS2U2NL12G500-2U-Server-with-2x-X10DRT-P-.jpg)
Nutanix NXS2U2NL12G500 2U Server with 2x X10DRT-P-G5-NI22 Blades USED
$349.99
![Dell PowerEdge FX2S 4 Slot Blade Chassis - CMC, 2x 2400W PSU picture](/store/img/IcIAAOSw~YZmhXZe/s-l225//Dell-PowerEdge-FX2S-4-Slot-Blade-Chassis-CMC-2x-24.jpg)
Dell PowerEdge FX2S 4 Slot Blade Chassis - CMC, 2x 2400W PSU
$299.00
![Dell PowerEdge FX2s CTO Blade 4 Slot 2U Chassis 2x 2000W picture](/store/img/9HsAAOSw3OZmMT~n/s-l225//Dell-PowerEdge-FX2s-CTO-Blade-4-Slot-2U-Chassis-2x.jpg)
Dell PowerEdge FX2s CTO Blade 4 Slot 2U Chassis 2x 2000W
$399.00
![Dell PowerEdge M620 Blade Server picture](/store/img/escAAOSw75Zlodg9/s-l225//Dell-PowerEdge-M620-Blade-Server.jpg)
Dell PowerEdge M620 Blade Server
$39.99
![Dell PowerEdge M620 Blade Server 2 x Xeon e5 2665 8 x 16 GB(128) RAM - No HD picture](/store/img/HUMAAOSwj3ZmdO6c/s-l225//Dell-PowerEdge-M620-Blade-Server-2-x-Xeon-e5-2665-.jpg)
Dell PowerEdge M620 Blade Server 2 x Xeon e5 2665 8 x 16 GB(128) RAM - No HD
$44.99
![Dell PowerEdge M620 Blade Server/8x8 GB Ram (64GB)/2x Intel Xeon E5-2680 2.70GH picture](/store/img/-gYAAOSwA1Vmkr2Q/s-l225//Dell-PowerEdge-M620-Blade-Server-8x8-GB-Ram-64GB-2.jpg)
Dell PowerEdge M620 Blade Server/8x8 GB Ram (64GB)/2x Intel Xeon E5-2680 2.70GH
$50.00
![Dell PowerEdge M630 / HHB Server Module w 2x Intel E5-2680 & Dell P3V42 No HDD picture](/store/img/1P0AAOSwzFhmfypq/s-l225//Dell-PowerEdge-M630-HHB-Server-Module-w-2x-Intel-E.jpg)
Dell PowerEdge M630 / HHB Server Module w 2x Intel E5-2680 & Dell P3V42 No HDD
$89.99
![Dell PowerEdge M820 Blade Server CTO Configure-To-Order picture](/store/img/neUAAOSwP15mc00h/s-l225//Dell-PowerEdge-M820-Blade-Server-CTO-Configure-To-.jpg)
Dell PowerEdge M820 Blade Server CTO Configure-To-Order
$119.00
![Dell PowerEdge M1000e Chassis w/ 16 x M600 Blade Servers(No Ram, 2 x 147GB HD) picture](/store/img/r2UAAOSwJ65exYAl/s-l225//Dell-PowerEdge-M1000e-Chassis-w-16-x-M600-Blade-Se.jpg)
Dell PowerEdge M1000e Chassis w/ 16 x M600 Blade Servers(No Ram, 2 x 147GB HD)
$300.00
![Cisco UCS B200 M4 Blade Server 2X E5-2697A V4 18C 2.60GHZ 512GB RAM No HD picture](/store/img/jk8AAOSwVu1mj0sn/s-l225//Cisco-UCS-B200-M4-Blade-Server-2X-E5-2697A-V4-18C-.jpg)
Cisco UCS B200 M4 Blade Server 2X E5-2697A V4 18C 2.60GHZ 512GB RAM No HD
$308.99