Tag Archives: Gedit

“Username is not in the sudoers file. This incident will be reported…” How to add a specific user to sudoers on Linux

Sooner or later, if you use Linux and you prefer Terminal to GUI you will stumble on this message:

Username is not in the sudoers file. This incident will be reported

The first thing to clarify is that the “incident” will never be reported outside your computer but in the auth.log file. But if you have previously configured your Linux OS to send these kind of logs to you by email, you receive an alert about.. your own activity with sudo…

In any case, to solve the above mentioned specific sudo matter, use Terminal and type:

sudo gedit /etc/sudoers

At this point the text file “sudoers” will be opened and you will be able to modify it using e.g. gedit.

Obviously you can use another text editor you prefer as, for example, nano. In this case the command will be:

sudo nano /etc/sudoers

Now you have to peer into the text and find the “#User privilege Specification” section and add the command:

your-username ALL=(ALL:ALL) ALL

where ALL=(ALL:ALL) ALL stands for: allow the specific user (your-username) to access all the terminals, as if he/she were any other user, and allow him/her to execute the full range of commands.

And you will obtain something similar to this:

# User privilege specification
root ALL=(ALL:ALL) ALL
your-username ALL=(ALL:ALL) ALL

Try it! (..if you need…)

——————-

References:

https://help.ubuntu.com/community/RootSudo

Set your Ubuntu Desktop Fully Transparent Panel

When you set the panel to be transparent in the default Ambiance theme in Ubuntu 10.10 or 10.04, you will find that some panel items’ backgrounds are not transparent, but you can make them transparent and consistent with others, following these steps:
– Go to Applications (or Main Menu) > Accessories > Terminal.
– Enter: cp -R /usr/share/themes/Ambiance ~/.themes/
– Enter: gedit ~/.themes/Ambiance/gtk-2.0/apps/gnome-panel.rc (for Ubuntu 10.10) OR gedit ~/.themes/Ambiance/gtk-2.0/gtkrc (for Ubuntu 10.04), to open the file with gedit.
– Search for this line bg_pixmap[NORMAL] = “img/panel.png” (for Ubuntu 10.10) OR bg_pixmap[NORMAL] = “panel_bg.png” (for Ubuntu 10.04)
– Comment out the line by placing a # at the beginning of the line, like this: #   bg_pixmap[NORMAL] = …
– Save the file.
– Go to System > Preferences > Appearance, switch to the other theme and then back to the Ambiance theme.
Note: If you’d like to change to the Radiance theme, replace Ambiance with Radiance in the above command lines, but you’d like to change to the New Wave theme, then enter: cp -R /usr/share/themes/”New Wave” ~/.themes/ in step 2, enter gedit ~/.themes/”New Wave”/gtk-2.0/gtkrc in step 3, search for and comment out this line bg_pixmap[NORMAL] = “Images/Panel/PanelBarLong.png” in steps 4 and 5 respectively. AddThis mp3 link

Ubuntu to Windows XP folder sharing

Computer networks are sometimes comprised of various OS and while operating a network made up fully of Ubuntu desktop and server computer systems would definitely be enjoyable, some community environments can consist of both Ubuntu and Microsoft Windows systems working together.
If you want to make an Ubuntu shared folder be accessible to Windows XP,  run the NTFS configuration tool on the drive.
Don’t forget that it is advisable to have admin rights to do that modification.
Select application->Accessories->Terminal
then type the following:

sudo gedit /etc/samba/smb.conf

and in the [global] section add the following line:

usershare proprietor only = false

AddThis mp3 link