wanting to add a line of code in text editor
Modifying Default Settings
The first set of basic critical changes requires you to modify three insecure default system settings:
* Reconfiguring shared memory
Load your favorite text editor, open the file "/etc/fstab" and add the following line of code:
tmpfs /dev/shm tmpfs defaults,ro 0 0
* Disabling SSH root login
Load your favorite text editor, open the file "/etc/ssh/
PermitRoo
to
PermitRoo
* Limiting access to the "su" program
Open the terminal by clicking "Applications" selecting "Accessories" and choosing "Terminal." From there enter the commands:
sudo chown root:admin /bin/su sudo
chmod 04750 /bin/su
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu gedit Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Bill Duvall for more information if necessary.