[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Ubuntu: Delete UAC (Need NANO help)

Posted on 2011-09-15
5
Medium Priority
?
405 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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é.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

649 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