Debian :: Running Admin Commands As Non-root
Apr 4, 2016
I use two separate systems both running Debian 8. On one (my main) I can't do some commands including ping, shutdown and reboot without running them as root user, however on my other system I can ping and reboot as a non-privileged user. The permissions on both systems are the same for /bin/ping and /sbin/systemctl (reboot). I thought at first it was something to do with what groups my main was in, but that doesn't seem to be the gase.
I know I can fix it by setting setuid for both, but my question is why is it different on both machines? Is there a global setting controlling this in /etc or perhaps an icmp setting?
View 7 Replies
ADVERTISEMENT
Jan 25, 2011
I login as normal user. I can 'su root' fine - password authenticates. However, If I try to run System->Administration->Users/Groups, when it asks for root password, it is rejected. When I run updater, it reports failure to authenticate, but doesn't even ask for root password beforehand. Is there a cached password someplace?
View 7 Replies
View Related
Nov 7, 2009
After a few hours work I have managed to set up pptd so that my daughter can log into her account at Imperial College. My problem now is that I need to have a script that she can run if she wants to log in. She will have to invoke a couple of root commands and I do not want to give her the root password What she needs to do to set up networking is:
Quote:
pppd call imperial dump debug logfd 2 nodetach require-mppe
/sbin/ip route add default dev ppp0
How can I enable things so that she can run this script as user?
View 12 Replies
View Related
May 7, 2015
I'm using Debian Jessie Cinnamon right now. I've got 1 user account on my machine--fred--as well as root, of course. "fred" is an administrator, and many times that is enough for root priviledges, for example, I can install packages via apt or dpkg. However, I cannot access "Users and Groups", or install packages via GDebi, with my password. For that, I have to have the root password.
I know that it is possible to let the admin account handle everything and not even need root--for example, Mint and (I believe) Ubuntu do it this way. I don't know how, though.
Code: Select allgroups fred
fred : fred cdrom floppy sudo audio dip video plugdev netdev lpadmin scanner bluetooth
I did disable the root account by Code: Select allsudo passwd -l root to see if it would make any change. Nothing different happened except that I now can't use GDebi or access "Users and Groups" since the root account and therefore password is inactivated. Not a big deal to get it back, though.
View 10 Replies
View Related
Aug 6, 2010
Recently got a VPS and installed Ubuntu Server 9 (32bit) When i go to install basic pages like php my admin with commands like..sudo apt-get install phpmyadmin I get a error like this:
root@PkNGssbkpT:/# sudo apt-get install phpmyadmin Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
[Code]...
View 1 Replies
View Related
Aug 22, 2010
I'm connected to the internet using a wireless router. Each time I boot, I have to grant root privileges and type in a shell: iwconfig wlan0 essid linksys key dhclient wlan0 Isn't there a file(or location) that I can modify to automatically grant root privileges and execute these commands when debian starts? Something like autoexec.bat in windows.
Something else I'd like to mention is when I execute iwconfig.... for the first time, I get this incomplete result:
IEEE 802.11bg ESSID:"linksys"
Mode:Managed Access Point: Not-Associated Tx-Power=27 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key***********
Power Management:off
[Code]...
View 4 Replies
View Related
Jun 26, 2015
In Iceweasel, WhatsApp does not properly work, because you can't download images. Oddly, that doesn't happen on Firefox, so I'm considering using it.
As Firefox is not in the repos, I downloaded the tar.bz2 file from Mozilla and uncompressed it at my home. What I don't know is, what will happen when a new version is released? It has the option to autoupdate enabled but... will it be able to do so without root privileges?
View 1 Replies
View Related
Mar 15, 2011
Also, how can I change between the two?
View 4 Replies
View Related
Jul 15, 2010
I downloaded The Witcher for windows from Wine and I'm trying to run it but it says I have to run it as the admin the first time the game is ran. I don't know how to run it as admin lol. I've only been using ubuntu for about a week now. If you can let me know how to do it from the terminal AND from shortcuts, that would be great because I'm trying to know what all I can do with ubuntu.
View 6 Replies
View Related
Jan 7, 2016
I'm brand new to Linux and perhaps foolishly jumped right into Debian (Jessie). I've managed to get Dropbox downloaded/installed/whatever the proper parlance is, but in order to access it I have to input Code: Select all~/.dropbox-dist/dropboxd. When I close the root terminal, Dropbox disappears.There's no icons in the menu. Likewise with GUFW. It might be superfluous since UFW seems to be active whenever I check it through the root terminal. Is there any way to configure Dropbox to start automatically and maintain its status even if the root terminal is closed? I've looked around these forums and the internet in general and not found any similar problems. Also, I installed Spotify but whenever I click the icon nothing happens.
View 8 Replies
View Related
Mar 17, 2010
I installed the VNC server by following [URL] (Remote login with vnc-ltsp-config). Everything works great for normal user but when I try to access admin tools in the GUI, nothing appends. If there is a way to authorize the root to log via VNC viewer.
View 1 Replies
View Related
Feb 28, 2011
I'm new to Linux (had some basic Unix experience in 1995 era). (Teenager) gave me HP2133 mini notebook running SUSE Linux Enterprise Desktop 10. Everything checks good (hardware and software), even wireless networking. Problem is she apparently created Admin/root password but says cannot remember. I cannot even set correct date time... yast is asking for root privilege:
Command: /sbin/yast2 time
Is there anything I can do to re-establish administrator privilege?
View 6 Replies
View Related
Jan 23, 2010
I try to install my printer again after reinstall ubuntu 9.04. ("downgraded from 9.10"). Instead of asking for the local-user-login password, as it does for other system changes, it asks for a root password that I never had. What happened? How can I set this right?I made a printscreen.
View 3 Replies
View Related
Jan 8, 2011
One of the feature in my application involve changing of hardware setting. This require the user to be root or have administrative right.Before my application enable that feature, I want it to check whether the user is "root" or not, or whether user use "sudo" command to run the application or not, or whether the user has administrative rights or not.What are the codes or library that can do this?
NOTE: Sometimes, advanced linux user may set the user id of root to something else other than 0. So, getuid() may not be helpful in this case.
View 4 Replies
View Related
May 1, 2010
After freshly installing Lucid Lynx and tinkering for some time to get everything just how I like it, I managed to somehow remove myself and all other users from all groups. Now, obviously, I've restarted and I don't have root privileges as I am no longer a member of admin group. So I am somewhat stuck. I've looked at this page: [URL]. But annoyingly, there is no grub menu appearing on boot up (unlike previous Ubuntu versions). So I'm appealing for your help to either:
a) Show me how I can bring up the grub menu so I can access ubuntu in safe mode
b) Show me another way of accessing the system with root privileges. (Would using chroot from the Live CD work? I just thought of that now so I'll try it).
View 3 Replies
View Related
Feb 12, 2011
I'm a new Ubuntu user and a Python programmer, it's the first time that I use Python in Ubuntu so it's a bit confusing me. If I want to save a Module or something in a specified map, I get 'Errno 13', it says that I don't have permission to edit, do thing in that map. And this is also for importing files with Python. I logged in from Terminal with 'sudo -i' and closed Terminal, but the problem keeps repeating. How do I login as Admin or Root and stay as Admin or Root? I need right to edit/read files as well as root and normal user.
An example:
Python file:
test.py ->
test = open('/a.txt', 'w')
test.write('Test - Test - Test')
test.close
When I execute this, I get in the Python IDLE the 'Errno 13' problem and below the 'Errno 13' it says that I don't have permission. Who know how to stay logged in as root, even if the user has not logged in or isn't this possible, if it isn't then I just want to get files moving, editing/erasing etc.
View 9 Replies
View Related
Jan 10, 2011
I downloaded a driver for my printer today and I opened it in the terminal. Then a window popped up saying "This opporation requires root (administrative) privileges. Please enter the administrative password below:" I typed in the same password that I use when authorizing the installation of programs from the Ubuntu Software Center and I tried it multiple times. Each time, it rejects the password. I even tried downloading something else from the software center, just to make sure the password was correct, but the system had no problem with the password when downloading from the software center. So, is my software center password different from my administrator password?
View 9 Replies
View Related
Jan 20, 2011
want to run VirtualBox with root permissions. Trouble is that only when run as root i can access attached USB devices inside of a virtual machine, otherwise, these a greyed out).Now running VirtualBox as a root user also changes the configuration folders, making all my virtual machines already defined disappear. I also don't want to copy all to the root configuration folders. Is there a way to give the VirtualBox root permissions but without actually running the application as a root user. Is it possible to do without changing the permissions of the non-root user, i.e. i don't want my user to have all root permissions, due to security considerations.
View 1 Replies
View Related
Sep 4, 2009
Is suid disabled from running all home made bash scripts or just from running them as root or:
Who would know for sure.
I googled several combinations of Mandriva Linux how-to suid disabled setUID etc... so far all I found was "many distributions are disabling suid for security reasons" nothing specific.
View 2 Replies
View Related
Mar 4, 2010
I need to launch a bash file in Linux from an unprivileged user session, file that will run bash commands as root. But I do not want to create an user with root privileges to do that also the process must be silent (no password asked).
How can I do this without adding a user in sudoers and without giving rights to all users to execute the commands from that bash file?
I have tried SUID option witch would had been good as functionality but I understand that SUID doesn't work for script bash files.
View 14 Replies
View Related
Aug 11, 2010
I want to get a of log all the commands executed by the root user with the following details :
incoming ip
username (thru which su was executed)
time and date
all the commands executed as mentioned above.
Also if user has managed to login as root, he should not be able to disable / delete the above info. Can this info be collected at some other physical server ?
View 5 Replies
View Related
Mar 1, 2011
I am trying to administer a small group of ubuntu desktops in my classroom. I can use ssh to perform administrative tasks one at a time on each machine, but I want to automate these tasks through a small number of scripts. I am having trouble with running root commands through a script.
On other distros, I think I would simply ssh into the root account, and run the script. But as an ubuntu user, I have only ever used sudo, and folks at ubuntuforums are understandably hesitant to recommend logging in as root. Instead I am seeing suggestions to disable the password requirement for each specific command I want to run, which does not seem like best practice.
Should I enable the root account, give it a password, and ssh to the root account to run the scripts? To be specific, the scripts will do things like install updates, install programs, add or delete users, configure the desktop, etc.
View 5 Replies
View Related
Mar 17, 2011
I am running a shell script from a rc file in Linux. The shell script is going into a loop which runs for 8 hours. Now I want to prevent the shell script from running when Linux boots or I need to find a way to kill the shell script when it is running. I tried using killall, kill $! and Ctrl+C etc. Nothing seems to work. Can you suggest a way out. I am new to Linux.
View 2 Replies
View Related
Apr 11, 2010
I am trying to boot debian on my nexus one the guide i am using is telling me to run these commands
I am getting to the point where i type the command # cd /sdcard/debian but it tells me cd: can't cd to /sdcard/debian.
View 9 Replies
View Related
Sep 22, 2010
I have been trying to figure out how to automatically run terminal commands on login. For example, I want to run Firefox on login. When I run 'firefox' in terminal, it opens. This is what I tried:I went to System > Preference > Startup Applications and clicked on 'Add'. I gave it a name, typed 'firefox' into the command field and left the comment blank and added it to the list, making sure that the box was checked.
View 1 Replies
View Related
Apr 14, 2011
I am trying to run some simulations through SSH from my mac on our university SOLARIS system. My problem is that whenever I want to execute a command I get an error which says "Invalid argument". Maybe I should explain more what I want to do and what I did.Firstly I installed a software which I need to run, I did it through ThinLink, and it seems that it is running fine without a problems. I can execute all commands and scripts. Installed software contains tens of small programs. I have compiled it and assign the PATH to be able to use the software. This was still via ThinLink. Then I wanted to start to use SSH since it should be more secure and also faster for me. When I wanted to do same think as in ThinLink I got the message Invalid argument. For example I run a command which use program gensky. I wrote:
Code: gray1(dava) $ gensky 4 4 4
I got:
Code: -bash: ............/Radiance_install/bin/gensky: Invalid argument (i replaced the path to my home directory by dots) The PATH to the program seams correct but it does not run correctly. With SSH I can log into the remote machine and see all the files which I have on the disk as well as to run standard commands like mkdir etc. But I cannot run the programs which I installed.
View 3 Replies
View Related
Aug 1, 2010
I would be running SQL commands (UPDATE/SELECT) from within my bash script. I am completely new to this subject. Is MYSQL used for this purpose? Alternatively, what is sqlplus?
View 6 Replies
View Related
Jan 10, 2010
Recently I gained interest in running command from the terminal, like rhythmbox-client --play-pause and vlc --open, but I could not find the vlc's pause command under vlc. there's a way I can have a terminal display the commands that run when I do some action. For example, when I click on pause in vlc, the terminal should show me what command it used to pause vlc. What's the closest ting I can get to this?
View 1 Replies
View Related
Feb 10, 2009
what i want to do is run two commands (nautilus and gedit) from the command line/shell script at the same time. i can obviously do && between them, but this requires the first app to close before moving on to the second one. i want to run both apps at the same time so i can run gedit with some project files open on it, and nautilus to browse those files/other files.
View 10 Replies
View Related
Jun 18, 2009
I have set up ssh to connect with a RSA key to a router. Now, I want to be able to run a chain of commands on that router the problem is that I can't send them separated with ; cause the router doesn't understand the separation, so I have to send the "<enter>" keys somehow. I tried to do it like this:
( echo ping localhost; echo ping localhost; ) | ssh -i blah user@router
The connection is established, but it gets broken after login and no command is executed. Is there a way I could tell ssh to read a text file where the chain of commands is?
View 3 Replies
View Related