![]() ![]() I am not afraid to play around in the terminal, as I am a Linux/unix junkie. ![]() How am I supposed to get this back? reinstall the BSD subsystem, or is there some Quick and Dirty(tm) way to get it back? So, from the looks of it, sudo was never installed. The next step was to see where sudo is located, so i typed in I know I am typing in my password correctly. it asked for my password (yes, I am running this from an admin account), and all it said was su: sorry. So, when trying to run some shell scripts (to uninstall something), I typed in sudo and dragged the script to the terminal window, and pressed enter. I thought everything was fine, except the terminal would not display "welcome to Darwin!" when opened, instead, all I get is bash-2.05a$ when it starts up. So, I reinstalled, with a minmial install, then added in the BSD subsystem. the first time I installed it, something got messed up, and the desktop would not show up. sbin/service snmpd status echo echo /sbin/chkconfig -list snmpd echo echo echo cat /etc/snmp/nfĮcho "This system is not running rsyslog.OK, I got Jaguar installed and all updated on my trusty Wallstreet. sbin/service sshd status echo echo /sbin/chkconfig -list sshd sbin/service osad status echo echo /sbin/chkconfig -list osad sbin/service rhnsd status echo echo /sbin/chkconfig -list rhnsd echo echo yum update -security #file /usr/local/groundwork echo echo /sbin/service gdma status For example: cat test.sh /bin/foo echo bar. But with sudo you get the message you got. You may receive this error message if you do not have the installer for the applicable macOS version downloaded on your system. When run without sudo, the message is a little more meaningful. ![]() ![]() The shebang is what tells the kernel the file needs to be executed using an interpreter. $g 'dsu|scan' /etc/passwd echo echo $g 'dsu|scan' /etc/shadow $g 'snyder|rsch|bream|shud|mweb|dam|kng|cdu|dpr|aro|pvya' /etc/passwd echo echo $g 'snyder|rsch|bream|shud|mweb|dam|kng|cdu|dpr|aro|pvya' /etc/shadow I should also note that I can run sudo with other commands in other directories.ĮDIT: The script ( I didn't write it so don't /bin/bash me over it, please ) ) #! /bin/bashĮcho '#' I would always recommend using Miniconda. If the command is not found, make sure the execution path includes the proper directory: Windows: C:PythonXYScripts where XY stands for the major and minor. Want fast access to Python and the conda commands and you wish to sort out the other programs later. Do not have time or disk space to install over 1,500 packages at once. Perhaps maybe it isn't and sudo is actually being broken during the build? Choose Miniconda if you: Do not mind installing each of the packages you want to use individually. sudo bash -c 'echo PATH' at 11:57 Also the result of running sudo grep -i securepath /etc/sudoers at 12:00 1 roaima, I added the result of the first command in the question, the second command didn't give any result. In fact, the point of the script is to ensure that it is actually built according to our policies. Please run the following command and include it and its result in your question. No changes have been made which would cause problems. The first thing to do in order to check if Redis is working properly is sending a PING command using redis-cli: redis-cli ping PONG. However, when I attempt to run it with sudo it says it can't find it: ~]$ sudo. I have a script in my /home directory which is executable: ~]$ ll ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |