Solved

Ubuntu: Delete UAC (Need NANO help)

Posted on 2011-09-15
5
400 Views
Last Modified: 2012-05-12
Hi,

1) There is  a linux workstation Ubuntu 10.04.3 in the production environment
-It gets the IP from DHCP server
-It can connect well to intranet and internet
2) The client of this workstation is annoyed with UAC (User Acces Control) which always Prompting with password of the root
3) Per reference from one of EE's experts; the article says like the followings:
-Open terminal
-Sudo visudo
-Find the line that says
   %admin ALL=(ALL) ALL
-and change it to
   %admin ALL=(ALL) NOPASSWD: ALL
-Save and exit the file

4) The things that I do in my ubuntu 10.04.3
- I open the terminal
- I am at --> Jack@Ubuntu-10:~$
-I switch to root --> sudo -s
- Now, I am at --> root@ubuntu-10:~#
- Then, I type in --> sudo visudo
- It opens the nano's windows like this:

GNU  nano  2.2.2   File: /etc/sudoers.tmp
# /etc/sudoers
#
#This file MUST be edited with the 'visudo' command as root.
#
# 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
# Allow members of group sudo to execute any command after they have

5) The editing that i do:
- I edit     ALL=(ALL) ALL and change it to ALL=(ALL) NOPASSWD: ALL
- Now , I have to SAVE and EXIT ---> (this is my problem; what is the command to save and to exit in nano?)

6) My questions: What is the command to SAVE and to EXIT in this nano (editor)???

7) Thank you

tjie
0
Comment
Question by:tjie
  • 3
  • 2
5 Comments
 
LVL 21

Accepted Solution

by:
Papertrip earned 500 total points
ID: 36546883
From ctrl-G:
^G      (F1)            Display this help text
^X      (F2)            Close the current file buffer / Exit from nano
^O      (F3)            Write the current file to disk

Open in new window


-I switch to root --> sudo -s
- Now, I am at --> root@ubuntu-10:~#
- Then, I type in --> sudo visudo

Don't need to sudo if you are already root.
0
 

Author Comment

by:tjie
ID: 36547135
Hi Papertrip,

1) It is easier to use the gedit
2) I login as root and go to /etc/sudoers
3) And I edit the followings:

 %admin ALL=(ALL) ALL
-and change it to
   %admin ALL=(ALL) NOPASSWD: ALL

4) Now, how to TEST that the UAC has been turned off already?
5) Post it back please
6) Thanks

tjie
0
 
LVL 21

Assisted Solution

by:Papertrip
Papertrip earned 500 total points
ID: 36547140
1) It is easier to use the gedit
No.  Use visudo.
4) Now, how to TEST that the UAC has been turned off already?
Try to sudo and see if it prompts for a password.

0
 

Author Comment

by:tjie
ID: 36547162
I do the following sudo:

1) sudo gedit /etc/hostname --> No Password is requested

2) sudo ifconfig eth0 | grep -i inet  --> No password is requested

3) sudo gedit /etc/resolv.conf  --> No password is requested


Does my UAC have been disabled or turned off??
0
 
LVL 21

Assisted Solution

by:Papertrip
Papertrip earned 500 total points
ID: 36547179
If sudo does not prompt for a password after 5 minutes from issuing the last sudo, then sudo is configured to not require passwords.  Sudo maintains a cache with a default timeout of 5 minutes.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question