Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 13335  / 2 Years ago, wed, july 6, 2022, 9:24:53

I am a new user to Ubuntu 10.10

My problem is when I start my machine it takes me to login screen of Ubuntu

but I didn't get option for logging in as user or root

I know my root password and all

even cant make a ssh request

I goggled it I got to know to press Alt+Ctrl+F1
it takes me to login of user



in this user after logging I am unable to write sudo commands



After searching for a while I came to know that permission to sudo might be crating a problem

permission to a sudo must be 440 I think which is 777 now



How to start up with my root access


More From » 10.10

 Answers
5

First of all if you haven't touched sudo or changed anything on /etc then its just your fear and you should read what Sergey has to say. Apart from that check if the file permission part is correct. Just do ls -l /etc | grep sudoers and see if the output is somthing like this:



-r--r-----  1 root    root       574 2011-03-25 20:34 sudoers


where -r--r----- part shows your permission to be 440 anything other than that should be changed to that as far as I know. If you can login as root on rescue mode, you can easily change file permission with chmod 440 /etc/sudoers command. If you are not allowed sudo command at all you may need an external live-usb to recover. Content of /etc/sudoers or visudo should look like this[atleast in my case]:



#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL

#includedir /etc/sudoers.d

[#43426] Thursday, July 7, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
laiuct

Total Points: 44
Total Questions: 105
Total Answers: 107

Location: Seychelles
Member since Mon, Feb 15, 2021
3 Years ago
;