Skip to main content

Add user in Sudoer file

The command sudo provides other users to run a command as a root. To use sudo user must have their level of privilege in /etc/sudoer file. In some cases this file is set for read only and others can edit that file and add their user name in Sudoer for this case such as Fedora 12 users need to provide this syntax as a root on their terminal.
Syntax for adding a user in Sudoer file is:
echo "username ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
And to gain the writing privilege you can use the following code in your terminal :

chmod 755 /etc/sudoers
This
code will be enough to give permissions to the user and his user group.
If you are an ubuntu user you can easily add your user in this file like:

vi /etc/sudoers
And you will get a text file. Afterward you need to press 'i' for edit and edit by adding your username just below

"root ALL=(ALL) ALL"
"username ALL=(ALL) ALL"

Comments

Popular posts

Using Flash in your HTML

Edit your Publish settings for Flash SWFs and HTML to reflect how you want your Flash SWF to appear in your web page. Export your Flash movie as HTML. Locate your HTML file on your computer, right-click, and select "Open With". Choose either NotePad or another text editor. Copy the source code from the HTML file. Paste it into your web page's source code in the appropriate location where you want your SWF file to display. Edit the file path to reflect the location of the SWF file on your web server, and upload both your HTML and SWF file to the appropriate directories on your server. ( Note:  this also applies if you're using PHP, JSP, ASP, CGI, or other web page extensions.) Your code should look something like this: <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="320" HEIGHT="240" id="You...

Enter your email address: