Debian :: Visudo - Add A User To The Sudoers In Vps Host And Edit A Couple Of Files?

May 2, 2011

I need to add a user to the sudoers in my vps host and edit a couple of files and I just cannot make sense of visudo, vi or nano. The tutorials I find on the net just take too long to study and they are never complete, can someone explain what I need to do? I am running Debian 506.

View 8 Replies


ADVERTISEMENT

General :: Error Opening Terminal - Edit Sudoers File By Typing Visudo

Nov 13, 2010

Recently I migrated from Ubuntu to Debian, first thing i wanted to do was to give myself sudo permissions and lock the roir account. By default sudo group don't have permissions to do this on debian, so i wanted to edit sudoers file by typing visudo. But i keep getting this
error: Error opening terminal: vanilla How can i solve this.

View 1 Replies View Related

Debian Configuration :: Visudo To Authorize User To Start Only One Application With Sudo On One Peculiar Host

Jul 14, 2015

I would like to configure visudo to authorize user to start only one application with sudo on one peculiar host and forbid everything else so, after reading the man, I came up with :

Code:

Select alluser       ALL = (ALL:ALL) !ALL
user       host_name = /usr/bin/application

But it does not seem to work.

View 2 Replies View Related

Ubuntu :: Use Sudoers To Allow Any User To Chown A Certain Set Of Files?

Feb 16, 2011

I have a fairly complicated request The short version is, I want to set up a system so that any user can change the ownership of a certain set of files at any time without root access. I think it's possible to set up sudoers to do that, but so far I have failed miserably.I have tried setting up a wrapper script around chown, then putting that script into sudoers, but it didn't work. Here's the script and sudoers (paths changed to genericize them):

Code:
#!/bin/bash
#this script moves a copy of the code

[code]....

View 4 Replies View Related

Debian :: User Cannot Download Any Files From Host Via WinsCP Or Other SFTP Client

May 26, 2015

Can i block on debian that user can not download any files from host via winscp or other SFTP client ?

View 4 Replies View Related

Debian :: User Not In Sudoers

Feb 21, 2011

I have installed debian 6 recently, and during installation I selected not to allow root login (and thereby enable my standard user to use sudo).If I check sudoers (by using visudo) my standard user is not listed anywhere, but he can still use the sudo command without any problems.Where else could this permission be stored?

View 5 Replies View Related

Ubuntu :: Main User Account Not In Sudoers List Debian 6.0 Squeeze

Feb 23, 2011

When i installed the new version of debian on my laptop to try it out, i noticed that i can't sudo as my main account is not in the sudoers list and i cannot put me in because i'm not sudo.

Code:
cesar@debian:~$ groups

cesar cdrom floppy audio dip video plugdev netdev powerdev scanner bluetooth
I have to enter as a root account but don't know how, plus i forgot my root password.

note. i dualboot with ubuntu 10.04 and grub is managed by it.

View 1 Replies View Related

General :: Separating User Commands Using Visudo?

Jul 20, 2011

Here is my scenario, I want to create about 3 groups of users:

--Admins-create and manage users
--Support1-Restart basic stack apps(httpd, mysql etc)
--Support2 Backups

So in my sudoers file i have managed to set them all up to perform the tasks above. However, I want to limit the users in the specific groups from running commands from other groups. eg a user in admins shouldnt be able to restart the stack applications etc. I have tried using the ! to create an exception eg !/etc/init.d/httpd start for the users but its not working.

View 6 Replies View Related

OpenSUSE :: Make Shutdown Without Root User Using Visudo?

Jun 13, 2010

I was trying to make shutdown without root user using visudoI tried the following still it did not work for mehawk ALL=NOPASSWD:/sbin/shutdown -h now

View 6 Replies View Related

Ubuntu :: How To Edit The Sudoers File

May 16, 2011

I want to create a group called scripts, add www-data to that group. I then want to edit the sudoers file and tell it that the script group doesn't need a password. Where should I put this line excatly in the sudoers file?

View 2 Replies View Related

General :: Installing Arch - Warning: Do Not Edit /etc/sudoers Directly With An Editor

Sep 7, 2010

Warning: Do not edit /etc/sudoers directly with an editor; Errors in syntax can cause annoyances (like rendering the root account unusable). You must use the visudo command to edit /etc/sudoers. In the previous section we added your user to the "wheel" group. To give users in the wheel group full root privileges when they precede a command with "sudo", uncomment the following line:

%wheelALL=(ALL) ALL

so i signed in as root and typed in visudo now i alreayd made the changes but how do i exit and save super+x doesnt seem to do it for me since im not using nano and not supposed to cause it causes errors

View 3 Replies View Related

Fedora Servers :: User Setting - FTP - View / Edit Files In One Certain Folder

Apr 17, 2010

I have installed Fedora 12 x86_64 and vsftpd. I would like to set up an user for FTP so that he/she could only view/edit files in one certain folder (the one that I set up). How would I go about doing that?

View 2 Replies View Related

Debian :: Cannot Edit VPN Connections As A User

Aug 24, 2015

I am trying to add an OpenVPN connection from the Network Connections GUI. The problem is everything is greyed out when I am logged on as a user. When I log in the GUI as root I can create the OpenVPN connection no problems. The problem with that is the option to use my newly created VPN connect does not appear when I log back into my user. I have tried adding my user into the sudoers file to no avail.

How can I give my user privileges to add OpenVPN connections?

View 5 Replies View Related

Ubuntu :: User Management On A Couple Machines (uid And Gid)?

Jan 29, 2010

In a small network (with <5 PCs) what is the best way to manage users and groups? When I create a new user, Ubuntu automatically assigned a UID unless I specify otherwise. If I were to mount shared drives between PCs (or between a client machine and a server) I'm wondering how it handles different UIDs/GIDs associated with files (usernames almost always match across system but UIDs/GIDs do not)? Or is the best solution to just assign matching UID and GID on every machine when they are created? Or is this just magically handled via the matching usernames? I know there are heavier options but this has come up a number of times in small setups 2-5 machines at most.

View 1 Replies View Related

Red Hat / Fedora :: Add User To Sudoers

Jul 16, 2010

I recently installed Fedora 13 "Goddard" using the graphical installer (although I prefer the 'text/ reduced graphics' option.When I start the system (after installation completes), it runs in graphical mode and presents me with a graphical login prompt. However, due to security reasons (I'm told), it won't let me log on as the root/ admin user (which is fair enough).If I log on as another user (eg : alpha, charlie or delta, for this example), I can't edit the sudoes file to add one of these users (alpha) to the file. This is because these users aren't in the file, as far as I know.

At no stage during installation was I offered an option of either setting the runlevel or adding a non-root user to the sudoers file.I have found a way to change the runlevel setting, so that is not really an issue.What I would like is either of the following :

1. A modification to Fedora's graphical installer that allows for an explicit option to set the runlevel (graphical/ command-line) and another option to add the first created non-admin user (alpha in this example) to the sudoers file.

2. Information on how to add a user to the sudoers file without adding all others (eg : alpha, but not charlie and delta, in this example).

I have read the relevant man and info pages for the su, sudo, sudoers and visudo commands, but I only got confused. (I don't know BNF/ EBNF and I would like a solution that doesn't involve having to learn these BNF dialects, although I will if I have to.)Also, I have seen solutions that show how to add all users, but not individual users, to the sudoers file. What I want is to add an individual user (if this isn't clear already).Please feel free to send me an e-mail about this post : nigel.nq.ngw[at]gmail[dot]com with the subject line "Linux Forums - Fedora 13 Add User to Sudoers"

View 3 Replies View Related

Fedora :: Add User To Sudoers File?

Apr 18, 2011

How do I add myself to the Sudoers File? When I go to use the "Sudo" command, it tells me I am not in the Sudoers File, so I have to do "su -" to bypass it for the time being. How do I add myself?

View 12 Replies View Related

Ubuntu :: How To Add User Xyz To Sudoers File?

Feb 15, 2011

How do I add user xyz to sudoers?

View 1 Replies View Related

Ubuntu :: User Not In The Sudoers File?

Jul 15, 2011

I have a bit of a problem... I thought (for certain reasons) I would just add myself to root group and therefore gain some more rights for my account. I could sudo before... But once I gained the root group as a secondary group it says I am not in the sudoers file anymore...

Code:
id
uid=1000(kosta) gid=1000(kosta) groups=0(root),1000(kosta)
Code:
sudo ls
[sudo] password for kosta:

kosta is not in the sudoers file. This incident will be reported. It is really weird and messed up. I can view sudoers file but not edit it... I can cat passwd but I can not view syslog. Is there any way to fix this without having to reboot to recovery mode? And why the heck is this happening after all?

View 2 Replies View Related

General :: Add A User In Sudoers File

Oct 4, 2010

How do I add a user in a sudoers file.

View 6 Replies View Related

Debian Installation :: Error Message - Bash / Visudo Command Not Found

May 24, 2015

I have just installed Debian 8 with Gnome desktop and trying to add my username to sudoers list.

When I open terminal and enter visudo I get the following error message...

Code: Select allfracmo2000@debian:~$ su
Password:
root@debian:/home/fracmo2000# visudo
bash: visudo: command not found
root@debian:/home/fracmo2000#

Although I am quite new to debian, I have done this successfully in the past so not sure why this is happening?

View 7 Replies View Related

Fedora :: User Login Not In Sudoers File

Oct 2, 2009

I wanted to do an installation from my user login so I typed
sudo make install
then it says
<my_user_loggin> is not in the sudoers file. This incident will be reported.
How to correct this matter...

View 4 Replies View Related

Ubuntu :: Sudo: User Is Not In The Sudoers File

Mar 25, 2010

I get this message if i try to use sudo/gksudo. What causes this, how can I solve it? It has been working for years. If i remember correcttly there was a sudo update few days ago, maybe it doesnt work since then, i havent used it in the last few days.

View 9 Replies View Related

Ubuntu Security :: User Is Not In The Sudoers File

Mar 15, 2011

Suddenly I am not in the sudoers file. I am not sure how to recover from this. I have no grub screen at bootup, so I can't boot into single user. I think I am going to have to boot a live version of ubuntu to start with. Is that right? What's next after that? Also, how could this happen, I haven't touched the sudoers file or added users or anything like that (well not that I am aware of) I am a little concerned that this may be the result of someone breaking in? Would this be a likely symptom?

View 3 Replies View Related

Fedora :: Add The Default Normal User To The Sudoers Group?

Jul 3, 2010

How do i add the default normal user to the sudoers group? Is it normal for the main user to be kept out of the sudoers group or did i do something wrong during install?

View 2 Replies View Related

Ubuntu Servers :: How To Setup User To Be In Sudoers File

Jan 31, 2010

I just installed Gutsy server. It is the only disk I can get to boot on this old PC trying to salvage. I'm at the "SERVER LOGIN" prompt. I created one user during the install. I can login as that user, but that user has "...Is not in the SudoersFile." How do I setup this user to be in the sudoers file, without having any ability to make changes to the system?

View 5 Replies View Related

General :: User Not In The Sudoers File - This Incident Will Be Reported

Mar 12, 2010

I need to install a package. For that I need root access. However the system says that I am not in sudoers file. When trying to edit one, it complains alike! How I am supposed to add myself to the sudoers file if I don't have the right to edit one? I have installed this system and only administrator. What can I do?

Edit: I have tried visudo already. It requires me to be in sudoers in the first place.

amarzaya@linux-debian-gnu:/$ sudo /usr/sbin/visudo

We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for amarzaya:
amarzaya is not in the sudoers file. This incident will be reported.
amarzaya@linux-debian-gnu:/$

View 5 Replies View Related

Debian :: Don’t Have Write Permissions To Edit Files

Apr 13, 2016

I got Whonix set up, and everything in place to be running correctly and I was on cloud nine. The only problem I'm having is that whenever I try to go in and change my index.html files in /var/www/, or really do anything (add new file/folder, save or delete a file) I get the message that I don't have the right permission to do anything other than open and close the folders and files.

View 10 Replies View Related

Ubuntu :: User Removed From Sudoers / Get Back To Promised Land?

Jan 9, 2010

I managed without knowing to remove my user from the sudo users group. I did usermod -G fuse <username> and now I can't sudo anymore. How do I get back to the promised land?

View 3 Replies View Related

Ubuntu Servers :: Unable To Add User Directly Into The Sudoers File

Jun 22, 2011

I'm running Ubuntu Server 11.04. It came time to add User to the sudoers file: so I decided to simple add User to the admin group: usermod -a -G admin user Then I used visudo to check if admin users had been set to receive sudo privileges. I uncommented the line admin ALL=(ALL) ALL. Nothing happened. I've even tried to add user directly into the sudoers file as user ALL=(ALL:ALL) ALL, but that failed too.

View 3 Replies View Related

Debian Multimedia :: Xfce - Login As Root To Edit Files ?

Feb 12, 2011

Trying 6.0 xfce on an old computer and need to know how to login as root to edit files?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved