Server :: Make A Normal User Execute Commands Of The Super User's?
Jul 3, 2010
I have a question that i want to make a normal user to execute the commands which the root user is able to execute, say if i have a user named siru and when i logged in using siru i cannot run commands like tracert,nmap@loccalhost and all but i can run when i have logged into root account so my question is how to make siru to run the command tracert,nmap@localhost.I have even edited the .bash_profile of siru's home directory from
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
I have a program(that is written by me) which need super user permission to execute it. But I need to let the normal users to execute it without using 'sudo ./executable' and just './executable'. how i can set the program to execute by the normal users without using 'sudo' or password prompting.
I have a very stupid case, I have to use a domain user to install one software in RHL4.8, but this software need a super-user permission but not root. So I need a domain user who has super-user permission. Not use su, sudo. If I use su or sudo ,the software will be installed under root. The requirement is the software must be installed under a domain user. How can I do?
Customer asked me to create a menu for linux he also asked me to do this: Open like a command like where a user can execute commands...so for this the users have sudo enabled. The code below works OK. But it has an issue when a command is executed but the command does not need sudo
Like for instance Code: cd / sudo: cd: command not found
How can I allow a user to execute all commands when a command does not need sudo Code: echo -e "Press Control+C to finish" #echo -e " " while true; do read whichcmd?"Insert Command: " sudo $whichcmd done
I am trying to write one script. Purpose of my script is that it will login to particular user and it will execute some set of commands.What I was trying....
I was looking at some Vim plugins, and I installed one called Abolish. The page from where I got it [URL] only says:
install details Extract in ~/.vim or ~vimfiles
So I extracted it in ~/.vim. Now, the issue is that, if I edit a file as root, I am able to use the commands; however, when I edit a file as a normal user, these commands won't work. So... could this be a permissions issue? Or should I copy the plugin in some other directory, maybe?
I've looked everywhere but I can't find where to change the default box for incoming mail, or am I on the wrong track. It's a nuisance having to change folders and I can't configure wastebin to empty on exit.And I can't get kmail to import from evolution. Do I have to go to the evolution storage and do it manually, and if so, how do I do that?
I am using vicidialnow 1.2 VERSION: 2.0.4-122 and BUILD: 81011-0855 (CEntos Based Dialer). In all the way, it is working fine. I want to give the access of command /usr/sbin/mtr to a Normal System USer, which is not working according to my wish. I have make the entry in as sudo or make the soft link of /usr/sbin/mtr to /bin. But all in vain. And i am not in the condition to give the root access to the user.
My X server restarts as soon as I log in as a regular user. Root user has access. I can log in both root and normal user in terminal and over SSH. I tried rebuilding and installing the proprietary NVIDIA driver, as it builds it's own config file for X. I've had no previous problems with X on this system. The last major change to the system before the last log out was the installation of MCNP5. MCNP5 was installed under the regular user; no root privledges were needed.
i have a linux server, the Operating system is SUZE 9 but i need to see all commands executed by any users connected on the server and the ip of the host in a log file.the history file does not contain all info that i need .please is there a way to write a script in order to save this problem .
I have a nagios server monitoring around a 1000 hosts in our office. To make things easier, i've integrated apache into Active Directory for the website authentication. This works perfectly, however the Nagios website uses alot of CGI scripts to display information I get the message below when trying to show CGI scripts with an AD user. Local users work fine. 403 Forbidden You don't have permission to access /nagios/cgi-bin/status.cgi on this server. I tried adding the AD users to the cgi.conf file within Nagios (which works for local accounts) but it doesn't seem to work even with this change.
I've had a server setup working perfectly for the last 2 years. Today we installed a newer version of postgresql and recompiled apache/php.
Postgresql will not start now.
"service postgresql start" = /var/lib/pgsql/data is missing. Use "service postgresql initdb" to initialize the cluster first. To initdb we need to be as user postgres.
"su - postgres" = "no file or directory"
In /etc/passwd = postgres:x:26:26:PostgreSQL Server:/var/lib/pgsql:/bin/bash
how i can login as postgres user and enter these commands?
Recently I installed Ubuntu using WUBI. During installation it asked for a user name and password which I filled in. That user name and password are the same that I now use to log into ubuntu. But now I am unable to log into super user using the terminal. When I try to log in to the super user account it says that the password is wrong. During the whole installation process only once did wubi ask me to enter password and I am using the same password. My windows user name and password are the same as what I entered during installation.
I understand how to create a super user, but I do not understand how to create a password for that user. Can someone tell me how to please? Also when do I do this? Logged in as who?
I am trying to write a perl script which will give an interactive session to a user to execute command on the server. I have written a small script to do this :
Code: !/usr/bin/perl -w use strict; use Net::SSH::Perl; my $host = '192.168.1.1'; my $username = 'user'; my $login_passwd = 'test123';
I am trying to set up samba server on my box, and the easiest way seems to be to use the kde4 samba setting dialog. I need to run it as super user though. I tried
su - systemsettings
but the window doesn't seem to appear on the screen.
I have been trying to run the program unrevoked so that I can flash and root my phone. I want to do this on Linux, but this requires me to run the program as root and I don't know how to do this. I looked it up online and it told me to simply type sudo reflash or gksudo reflash and I tried both, sudo says it can't find the program and gksudo does something then nothing appears to happen.
How is the super user determined for the dialog box that pops up when trying to perform administrative tasks, "An application is attempting to perform an action that requires privileges. Authentication as the super user is required to perform this action."? Does it always ask for the password of the default user created during the OS install, or should it prompt for the current user's password if that person is an administrator?I use likewise-open for windows domain authentication, so I typically log in as a windows user that likewise-open has added to the list of users on this system. I have given this user sudo access and added the user to all the same groups as the default user, yet whenever I perform an administrative task in gnome I am prompted for the password of the default user. Is this normal? It seems like the behavior would be to ask for the current user's password if that user is an administrator, and if so what determines that the current user is an administrator?
I'm running Ubuntu 10.04 minimal with Openbox; far from a standard install but nearly everything works the way it should.
The problem appears quite simple:
Firefox does not recognise installed plugins (i.e, Flash) when running as the standard user; if I run the command 'sudo firefox' however, Firefox loads in plugins just as it should.
I've checked about:plugins in both instances and this has confirmed what is stated above. The list is populated when running as the super user, and empty when running as standard.
After a week of working with Debian, I decided to install the KDE3 version straight from an NetInstall CD. This fixed some issues for me as well as made networking and folder sharring a snap! But now its time to add all the extra packages I need.
Here's the problem: Using any kind of Package Manager yields the same results: E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (var/lib/dpkg/), in another process using it? RESULT=100
I've tried apt-get from root command line and the KPackage Manager that comes with KDE3 with same results. I have only one user that was created during Debian install. I'm having some other problems, from what I've seen on the net, they all seem to point to not having proper Super User access (I'm guessing here). What could cause this error? AND/OR How do I make sure I have top level access to the configure the system? (I tried logging in as "root", but the login errored out saying that this was not allowed).
I am trying to be a super user in terminal but I can't. I am sure that I type the correct password, I check also the caps lock button and the language. Also I can't go to the yast. note that the root password is exactly the same as user password
Code: nobani@linux-m9c6:~> su Password: Permissions on the password database may be too restrictive. su: incorrect password nobani@linux-m9c6:~> I am using KDE 4.3.5 on openSUSE11.2
After updating my system yesterday my laptop will no longer connect to my wifi connection, in fact the network manager doesn't appear on the screen. I cant access super user even with the correct password. Some programs fail to load e.g. hardware drivers.I'm online now using my ethernet cable. I cant update grub due to errors in etc/grub.d/README.I'm logged in as root now instead of my own user account.