The sudo command is a program for some Unix and Unix-Like operating systems, that allows a user to execute programs with the security privileges of another user. Typically those of a superuser or the root user.

learn more… | top users | synonyms

0
votes
0answers
12 views

How do I avoid getting prompted for a password when I run this script?

I’m using Amazon Linux. If I login as my “otheruser” user, and create a script, test.sh, with this text sleep 5 ; sudo reboot now I can login and run the script like so … [davea@mydevbox ~]$ sudo ...
-1
votes
0answers
22 views

How to putty ssh login and pbrun login using batch file

How to ssh login using putty, then running the pbrun with its login details, and to run a few commands using a batch file. Currently I tried doing: C:\path\to\putty.exe -load "[Sessionname]" -l ...
1
vote
1answer
20 views

Automating SSH login gives unresponsive remote-shell, dropping back to client-terminal (without errors)

I have a problem with the tool expect under Ubuntu 14.04 LTS. I want to automate ssh logins to some Sophos UTM Firewalls and evelate my rights directly after with "sudo su -" and the correct password. ...
0
votes
1answer
18 views

Authentication for root process not showing all users

I have 2 linux machines, 1 VPS and 1 raspberry pi Problem: When calling a root function e.g. service "a service" restart both these cases appear different. Some users do not show as possible auth ...
0
votes
1answer
58 views

how can I get higer privilages on linux [closed]

I would like to get higher privilages on my linux computer (I dont have any admin privilages and cant use sudo/su).I would like to get privileges of a root and privileges of file owner. how can I do ...
1
vote
1answer
23 views

What does single user mode in Linux/Unix means and how is it different from Safe mode in Windows

What is Single User mode used for? Can it override the root Password? Do you need a password to acces the SU mode? In a normal session when you run SU command does it stands for Single User or Super ...
0
votes
1answer
30 views

how to solve error sudo command is not found?

I want to install a game in Windows using Cygwin. When trying to use the sudo command, I receive the following error: -bash:sudo:command not found I get a similar error when trying to use command ...
-2
votes
1answer
31 views

How do I overcome my permission denied error when running with sudo?

I’m using the following version of Linux … [davea@mydevbox ~]$ uname -a Linux mydevbox.evo-text.com 4.4.5-15.26.amzn1.x86_64 #1 SMP Wed Mar 16 17:15:34 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux I’m ...
0
votes
0answers
12 views

sudo-users Executing and Runnning Commands Recursively

I would like to give a specific user the ability to run and execute commands recursively for a given directory and his subdirectories but only specify the top level directory in the sudoers file. ...
0
votes
1answer
15 views

Why strace sudo command bombs when sudo command works?

my username is allowed to execute sudo command then why does this bomb strace sudo command with the error: sudo: must be setuid root
1
vote
2answers
61 views

Why does a simple user password allow root access on Ubuntu?

I have a client who I setup with a linux machine. He isn't very tech savvy, and obviously just needed a simple password to log onto ubuntu with. His username and password are something like: user: ...
1
vote
0answers
15 views

Sudo user is not able to export path of ant

Sudo user is not able to export path of ant. I am trying to execute shell script setpath.sh which exports path for ant. After executing the script when I am executing ant command then getting ant ...
1
vote
1answer
52 views

I am getting “ln: /usr/local/bin/<Cask>: Permission denied” when trying to install some casks

I have installed Homebrew and Cask to my machine, and it has worked for some things. But I sometimes get an error saying ==> ln: /usr/local/bin/<Cask name>: Permission denied Error: Command ...
3
votes
3answers
20 views

sudo via cron'ed ssh works in RHEL6 but not in RHE7 (/dev/tty: No such device or address)

I give up: I have a cronjob script that Ive been running for years (out of a RHEL 6.7 machine) to remote into other RHEL machines via ssh. Works flawlessly against RHEL5 and 6 but fails against ...
1
vote
1answer
34 views

Linux - create screen as another user

I'm trying to create a new screen on my server (CentOS 5.11), but instead of starting it with my user, I would prefer to use another user with restricted permissions, just to be on the safe side. So, ...
0
votes
0answers
25 views

Have I messed up Time Machine backup?

I recently had a full power outage which happened in the middle of a Time-Machine backup to a Time Capsule on my network over WiFi. I've only recently got and started using the TimeCapsule device but ...
0
votes
0answers
31 views

“fork: Resource temporarily unavailable” from git in MacOS El Capitan

Sometimes when I am using Git and cannot do a sudo command, it reports fork: Resource temporarily unavailable What does this mean, and what should I do about it?
1
vote
2answers
66 views

Running script that has sudo commands with sudoers

I wrote a script that helps clean up my downloads and anime, but it won't run without root. So I tried adding it to /etc/sudoers (edited using techraf's suggestions): # This file MUST be edited ...
0
votes
1answer
37 views

systemd create root service

I need to create a systemd service to start some owfs-daemon automatically. I can manually start the daemon with sudo /opt/owfs/bin/owfs --i2c=ALL:ALL --allow_other /mnt/1wire/. Then there are ...
0
votes
0answers
23 views

rsync via sudo user using ssh not working

I logged in as USER1 and I am trying the below one from shell script. rsync -v -p -t -e "sudo -u USER2 ssh" USER2@HOST2:${REMOTE_FILE_TO_MOVE} \ ${DESTINATION_PATH} It prompts password for USER1 ...
1
vote
0answers
74 views

Set Locales on Ubuntu

Greetings: I want to set locales in Ubuntu. It currently has en_US.UTF-8 and I want to change it to es_ES.ISO-8859-1. I added the locale by entering the command sudo locale-gen "es_ES.ISO-8859-1" ...
2
votes
1answer
66 views

How is WinSCP able to provide a sudo user for executing scp?

The tool WinSCP is able to perform a sudo on the remote machine to perform the scp as the sudo user. That leads me to think that this must be possible with the command-line version of scp as well. ...
0
votes
1answer
43 views

What does “sudo /bin/ls %s %foo” mean?

I am trying to understand the above command. sudo /bin/ls %s %file_path What is does % do? Is it some kind of substituting mechanism? What does sudo /bin/ls do?
0
votes
1answer
29 views

How to enable user to change iptables rules?

I am currently developing an application that can automatically run commands in multiples servers. If I change a service configuration I need to restart (or reload) it and thus, some of the commands ...
1
vote
1answer
108 views

Nautilus not working on sudo

I've got Trisquel 7 GNU/Linux distro, with GNOME 3.8.4. I'm finding impossible to create a folder in Nautilus, or drag and drop files into the Desktop, out of other options. I find this quite ...
0
votes
0answers
26 views

How to automount in ChromeOS? Biggest partition not mounting at startup on my Chromebook

I was pretty excited to realize there's a Chromebook tag on here on SuperUser, very cool! Not finding this answer on SO or SU or after a lot of Googling. Question is: My biggest partition (9Gb) ...
0
votes
1answer
50 views

Corrupted sudoers file preventing me from using sudo

I attempted to add another user to the sudoers list on my Raspberry Pi running Debian (Raspbian Jessie kernel ver 4.1). While doing so I entered the entry in wrong and I keep getting these errors ...
0
votes
1answer
55 views

Is there a way to set up a warning before executing some commands in the terminal?

There are some terminal commands that are proficient at destroying large swaths of data very efficiently. Like: sudo rm -rf /* or rm -rf /*. I want to set up a warning that will show up, whenever ...
2
votes
2answers
39 views

How to sudo using another user's account password from a script?

I have a bash script running as user, a user account with no evaluated privileges. The machine has a second account admin which has sudo privileges. There is no root password set. The script knows ...
0
votes
1answer
37 views

sudo ssh-add /root/.ssh/id_rsa return error

I m trying to save ssh authentication with the command ssh-add for sudo usage: linux$ sudo ssh-add /root/.ssh/id_rsa Could not open a connection to your authentication agent. but as indicated it ...
-1
votes
1answer
72 views

WinSCP/PuTTY: Cannot move file on server via sudo: Permission denied

I have uploaded a file to a remote Linux server. current directory is: /home/user/file.war Now i want to move the file into tomcat webapps folder and overwrite the existing version: The directory ...
1
vote
1answer
55 views

Have output of 'sudo' script printed to same Powershell window?

I found this 'sudo' script online: function Elevate-Process { $file, [string]$arguments = $args; if([System.IO.File]::Exists("$(get-location)\$file")) { $file = ...
0
votes
1answer
83 views

Error executing remote commands with ssh using sudo user

The following command is failing: ssh -t user@server-01 sudo -iu suser "cd /opt/jboss ; ./portal.sh stop" I getting: bash: ./portal.sh: No such file or directory How can I change directory ...
1
vote
2answers
149 views

Problems with sudo privileges as admin in OSX

I am a admin on my Mac with OSX and I have enabled root user. When I try to use the terminal without typing sudo it does not seem to recognise my privileges as an admin, but it works fine if I type ...
3
votes
1answer
149 views

Add user to SSH group safe?

I want to control who can log in via SSH on my server. Is it safe to add the group 'ssh' to the users who are allowed to login in? I see some distros use system groups in the user's ID and others ...
0
votes
1answer
89 views

sudo to any user without a password

If sudo can be configured to no password such as: bob ALL=NOPASSWD: ALL Then how can you configure sudo to be able to sudo to any user without password ? So that sudo -u domainnameuser.com mkdir ...
0
votes
0answers
44 views

Subversion sudo svn update changes file ownership and rwx

I'm limiting permissions on a certain file, settings.py in my svn-linked directory so that it can only be read by sudo users and apache, which goes by the username, www-data. So, on settings.py, I've ...
1
vote
0answers
19 views

Run script as certain user — depending on group membership

I'm trying to run a script which calls another server through SSH (through Pub/Priv key). However depending on the user (or better said, his/her group membership) who runs the script through sudo, I'd ...
1
vote
1answer
43 views

What other than login and sudo is a Linux password for?

I've got a Linux development machine on which I've given some people key-based ssh access (password login is disabled). The users I've given access do not have sudo rights. So today I was wondering, ...
1
vote
0answers
22 views

Stuffed up sudoers file

I have managed to stuff up my sudoers file and am locked out of my server. Is there any way to get back in? To be precise, I have a single user (call her jane), who used to have sudo privileges for ...
0
votes
0answers
12 views

How do I break out of /home/reveller?

Ubuntu newbie here. I succesfully installed Ubuntu on a VM on Windows. I am now trying to run a localhost website using nginx. I have read tutorials online on how to create your website in /var/www ...
0
votes
0answers
67 views

Bricked my Ubuntu server can no longer start nor login anymore

I installed a virtual host (KVM) with Ubuntu Server 14.04.3 LTS. Now I spend the last week setting up apache, modules owncloud and other stuff. However, everthing worked great until I followed the ...
0
votes
0answers
46 views

I can't be root

My school gave me a dump with different partition, I have to Work on the linux one, it's a open suse modified by the school.. sometimes I need to be root for install stuff with zypper example, they ...
0
votes
0answers
27 views

Startup script launched with password-less user fails

I created a user with a password, installed an application with this user, then removed the password passwd --delete bower. When starting the following script using sudo start myscript the error ...
0
votes
0answers
13 views

How to run adb as super user in ubuntu

I have android platform tools which has adb. I know how to run commands on terminal but I don't know how to run an adb file (which is inside that platform tools folder) as super user.
6
votes
2answers
459 views

Why should I really disable root ssh login?

I always read I should disable root login for SSH and login with a user which has sudo. But where is the difference between: ssh root@vps and ssh myuser@vps sudo -i I don't have physical ...
1
vote
0answers
60 views

Installing SSL on Shared hosting server

I have beta invitation of letsencrypt.org I followed there documentation here . But i am unable to install there packages because i have shared hosting server which does not allow to use sudo ...
-1
votes
1answer
112 views

How do I run a command as another user?

I’m using the following version of Linux [me@ip-99-99-99-99 myproject]$ uname -a Linux ip-99-99-99-99 99.99.99-99.99.amzn1.x86_64 #1 SMP Mon Sep 14 23:20:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux ...
2
votes
1answer
125 views

Whitelisting commands a user can use with sudo

I've been attempting to set up a whitelist of commands a user can run on my system. The server I'm using is running CentOS 7. What is the syntax that should be used to only allow a certain group of ...
1
vote
0answers
2k views

“sudo: no tty present and no askpass program specified” error

I am getting "sudo: no tty present and no askpass program specified" error while executing command like "sshpass -p password ssh user@remote sudo ls". Can one help me out... I tried it over few PCs. ...