Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Ubuntu: Delete UAC (Need NANO help)

Posted on 2011-09-15
5
Medium Priority
?
406 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 2000 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 2000 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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses
Course of the Month7 days, 13 hours left to enroll

824 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