Solved

Ubuntu: Delete UAC (Need NANO help)

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

12 Experts available now in Live!

Get 1:1 Help Now