Solved

Ubuntu: Delete UAC (Need NANO help)

Posted on 2011-09-15
5
398 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP Apache application gives "Forbidden" message 5 44
Edit linux file using python 4 40
Remove a very long string from all files in Linux 6 85
nagios 1 21
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…
Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

911 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now