Sudo command not working in terminal
When I was trying to perform a action in terminal it was saying "permission denied". When I tried it with the sudo command it was showing the following error.
Can anyone please help me out in resolving this error.
Thanks & Regards,
Teja.
Hi,
Thanks for the response. I have tried the procedure suggested by you. But I was struck up with this issue. "repair disk permissions" option is disabled. So can you help me out in finding a solution.
Thanks & Regards,
Teja
Similar Messages
-
Host function plus sudo command not working
Hi,
For normal command such as ls, it works.
But when I run the following
v_host := '/usr/bin/sudo -u devuser /test/app/dev/scripts/test.sh
host(v_host);
it does not work.
anyone has idea ? Thanks.
IvanI imagine sudo is probably attempting to prompt for a password. I think it depends on who you are logged in as and who you are trying to log in as (and whether you have logged in recently within the last few minutes).
The host command won't support this kind of interaction. It needs to be a command that returns its results without requiring any further prompting.
That would be my guess. -
Basic commands not working in terminal?
I have been attempting to set up i2p on my computer, and noticed that terminal responded to any command, no matter how simple, with "Command not found".
After doing a bit of research across support communities, it seems that my problem lies within my PATH settings, and I need to fix them in order to be able to use commands again. I've tried multiple suggestions seen here on the suppport forums but none have worked so far. When I input /bin/echo $PATH I get the following:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/MacGPG2/bin:/usr/local/m ysql/bin
Help!Do you have a backup of this disk? If not, go get one of those now.
Do you have a pointer to whatever directions or installer tools you were following or using? (So we might see what's been suggested and the steps you've followed here.)
Do other logins work? If you log in as a different user and launch Terminal.app and try some commands, does that environment work?
Your PATH looks OK — you have the important bits /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin — and the rest of what's there shouldn't be relevent to commands such as ls, cat or mv, so the next question would involve whether the tools and files and directories themselves exist.
Do explicit paths such as /bin/ls, /bin/cat or /bin/mv work as expected? (Most of the core commands for the command line environment are located in /bin). Try the following command:
/bin/ls /bin
That command should displaty ~37 common shell commands and tools. -
I want to disable 'Spotlight' for repairing my disk "Macintosh HD" , but somehow the command 'sudo mdutil -a -i off' does not work in 'Terminal'. I get result as ' bash: sudo: command not found' .I am using OS 10.10. Please help.
It appears that you may not have a properly installed OS X system.
You must be connected to the Internet to reinstall OS X.
In the menu bar, choose Apple menu > Restart. Once your Mac restarts (and the gray screen appears), hold down the Command (⌘) and R keys.
Select “Disk Utility,” and then click Continue.
Select your startup disk from the list on the left, and then Repair Disk.
After disk is repaired, select Reinstall OS X, then click Continue.
Follow the onscreen instructions. In the pane where you select a disk, select your current OS X disk -
Crontab reboot command not working
Crontab reboot command not working
Greetings
I am new at this so excuse any ignorant mistakes I might be making.
I have a server (MM X.4.9) that I would like to restart every day in order to make sure no programmes are hanging etc. If a program is hanging is should force quit it. Using terminal I have entered the following command:
sudo nano /etc/crontab
Entered password
Than I entered using tab between each sequence:
15 13 1 1 * root reboot
This was a test run and it did not reboot.
Entering
cat /etc/crontab
I got:
# The periodic and atrun jobs have moved to launchd jobs
# See /System/Library/LaunchDaemons
# minute hour mday month wday who command
15 13 1 1 * root reboot
What have I done wrong?
ThanksHehe, there you are experimenting with a "reboot" cron command and you are surprised it quit so fast. You are not going to find a "graceful" solution to shutdown dialogs.
MSWord is a Java app, so it is especially important for the command to work that it doesn't get hung up on outer layers of the system. Especially stupid apps that use Java which is not well integrated. I believe Word has a 5 minute autosave, so you should be able to recover most of your document.
This reboot command should be running around 2AM, when the average webserver has minimum traffic. If you feel the need to reboot during busier times of the day, I'd suggest you look at what's causing your applications to crash. -
OK, I got Jaguar installed and all updated on my trusty Wallstreet. the first time I installed it, something got messed up, and the desktop would not show up. So, I reinstalled, with a minmial install, then added in the BSD subsystem. 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, 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. all I got was: Sudo: command not found. So, I tried the old standby, su. it asked for my password (yes, I am running this from an admin account), and all it said was su: sorry. I know I am typing in my password correctly.
the next step was to see where sudo is located, so i typed in
which sudo
and all I got was
no sudo in /bin /sbin /usr/bin /usr/sbin
so, from the looks of it, sudo was never installed. 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?
I am not afraid to play around in the terminal, as I am a Linux/unix junkie.
thanks.
-digitalIt's fixed. it was just a bad copy. I got another one, and now when I launch the terminal, it says
Last login: Fri Mar 2 19:53:49 on ttyp1
Welcome to Darwin!
[Leo-Titus-LeBron-Vs-Computer:~] leolebron%
and when I type sudo, it says:
usage: sudo -V | -h | -L | -l | -v | -k | -K | [-H] [-P] [-S] [-b] [-p prompt]
[-u username/#uid] -s | <command>
So, it all works. I knew something was different, as right after running the setup assistant, it ran software update, which the other copy did not do.
thanks for all the input.
-digital -
Any solution to purge command not accepted in terminal
Any solution to purge command not accepted in terminal after upgrade yo OSX mavericks?
Type 'sudo purge', then enter
It will ask for your admin password. Type and press enter again.
That's it!! -
-bash: sudo: command not found
Hello all,
I have had WAY too many problems with this laptop, and at this point in its miserable little life, I've decided to just wipe the hard drive and start fresh, not caring at all what happens to the files left on there. As previously stated in one of my earlier questions (That was, might I add, never fully answered.), this late 2008 MacBook (aluminum) has a problem where it does not boot up, and just endlessly shows the gray spinning pinwheel. Four months later, that just stops, and now when trying to boot up with my normal startup disk, it brings me right to the Recovery disk and tries to reinstall OS X. I tried, it failed 5 minutes in. So I tried to wipe the hard drive, and it says: Disk Erase failed with the error: Couldn't unmount disk. I looked it up and I saw that if I went into the Terminal and typed: sudo diskutil unmountDisk /dev/disk0 , it would unmount the disk. But whenever I type that, it says: -bash: sudo: command not found. I have no idea how to fix this, and I would really like to be able to use my laptop again without giving somebody my money to do it for me.
Thanks,
LukeClean Install of Snow Leopard
Be sure to make a backup first because the following procedure will erase
the drive and everything on it.
1. Boot the computer using the Snow Leopard Installer Disc or the Disc 1 that came
with your computer. Insert the disc into the optical drive and restart the computer.
After the chime press and hold down the "C" key. Release the key when you see
a small spinning gear appear below the dark gray Apple logo.
2. After the installer loads select your language and click on the Continue
button. When the menu bar appears select Disk Utility from the Utilities menu.
After DU loads select the hard drive entry from the left side list (mfgr.'s ID and drive
size.) Click on the Partition tab in the DU main window. Set the number of
partitions to one (1) from the Partitions drop down menu, click on Options button
and select GUID, click on OK, then set the format type to MacOS Extended
(Journaled, if supported), then click on the Apply button.
3. When the formatting has completed quit DU and return to the installer. Proceed
with the OS X installation and follow the directions included with the installer.
4. When the installation has completed your computer will Restart into the Setup
Assistant. After you finish Setup Assistant will complete the installation after which
you will be running a fresh install of OS X. You can now begin the update process
by opening Software Update and installing all recommended updates to bring your
installation current.
Download and install Mac OS X 10.6.8 Update Combo v1.1. You may then open App Store, click on the Purchases icon in the toolbar, and re-download any OS X upgrade you purchased except Mavericks. Since Yosemite has been released the App Store may not let you re-download Mavericks, but it will let you download Yosemite. -
Cannot inherit backups as sudo tmutil not found in terminal
I get a "sudo: tmutil: command not found" message on terminal when I am trying to inherit backups as per the fantastic instructions on the website by pondini. What does it mean and how can I correct it?
My old backups on time machine are not highlighted on time machine so cannot restore them. This is either because I have restored the OS or repaired the external HD used for backups.Lets' see....The thread is titled "Cannot inherit backups as sudo tmutil not found in terminal".
The OP just replied "Any idea what would be equivalent for 10.6.8 to inherit backups? Or is it even possible to do so for 10.6.8?"
The question was asked in the post right before mone. I should have highlighted that, I guess. Sorry.
To answer your second comment, I DID "go to the website" and looked for information. Including finding this thread.
DId not find an answer.
For anyone out there looking for an actual answer beyond "go find it yourself", the fact is that you CANNOT reconnect a backup in SL. THIS asnwered my question and I hope it helps others looking for the same. -
In Photoshop CC 2014 Alt + Ctrl + C ( to open for canvas size dialog box ) command not working, it is opening Internet Explorer (IE)
What version of windows are you using?
See if the Internet Explorer shortcut has that keyboard shortcut assigned to it. -
Bash commands not working after upgrade to Lion
After upgrade, many BASH commands not working. For example, such a fundamental thing as "ls".
iMac20:bin a$ ls
Launch of "ls" failed: the PowerPC architecture is no longer supported.
What does it have to do with PowerPC? My computer is 2.66 GHz Inter Core DuoLinc,
iMac20:~ a$ which ls
/sw/bin/ls
Also, I managed to look (using tcsh's ls-F command) into the contents of /usr/. Here's what I see there:
[iMac20:/bin] a% ls-F
[* csh* echo* ksh* mkdir* rcp* stty* wait4path*
bash* date* ed* launchctl* mv* rm* sync* zsh*
cat* dd* expr* link* pax* rmdir* tcsh*
chmod* df* hostname* ln* ps* sh* test*
cp* domainname* kill* ls* pwd* sleep* unlink* -
Why is my BDC_CURSOR command not working to position the cursor?
Why is my BDC_CURSOR command not working to position the cursor? Here are the details regarding my issue.
I am writing a BDC to mass delete routing material assignments using transaction CA02. I am OK to navigate through the initial screen to go to the Header screen and from here I am OK to navigate to the Material Assignments screen. But once here, I cannot get the BDC_CURSOR command to take me into the list. Here are the commands I am using. Please let me know what I may try differently.
CA02 Material Assignment - Set position <-- this resets list of materials to correct position
PERFORM bdc_dynpro USING 'SAPLCZDI' '1010'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RC27X-ENTRY_ACT'.
PERFORM bdc_field USING 'BDC_OKCODE' '=ENT1'.
PERFORM bdc_field USING 'RC27X-ENTRY_ACT' c_position.
CA02 Material Assignment - Delete
PERFORM bdc_dynpro USING 'SAPLCZDI' '1010'.
PERFORM bdc_field USING 'BDC_CURSOR' 'MAPL-MATNR(01)'. <-- this is not working to set the cursor into the list
PERFORM bdc_field USING 'BDC_OKCODE' '=LOE'. " trash can
PERFORM bdc_field USING 'RC27X-ENTRY_ACT' c_position.
CA02 Material Assignment - Green Check OK
PERFORM bdc_dynpro USING 'SAPLCZDI' '1010'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RC27X-ENTRY_ACT'.
PERFORM bdc_field USING 'BDC_OKCODE' '=BACK'. " check mark
PERFORM bdc_field USING 'RC27X-ENTRY_ACT' c_position.Thank you for your reply.
I had used SM35 to record. However, I was not aware of the "create program" feature. I had commented out a section from my previous post which I have now added back (latest code below). But it still did not resolve the issue.
When I execute with dismode = 'N', I get back error message "No batch input data for screen SAPLCZDI 1010".
When I execute with dismode = 'E' (only show dynpros when error), it stops at the material selection screen without placing my cursor in the list. I can then MANUALLY click to set the cursor position in the list, MANUALLY click the trashcan, it then uses my BDC command to respond to the popup asking "Do you want to delete", still leaving me at the material selection screen. I can then MANUALLY click the green check (or enter), then it continues with the BDC to go back to the previous screen, and saves. But it still will not place my cursor in the material selection list (SAPLCZDI screen 1010).
Here is code used. It is the second section of code labeled "CA02 Material Assignment - Delete" that is not working.
CA02 Material Assignment - Set position
this code functions to position the desired material to first in screen list
PERFORM bdc_dynpro USING 'SAPLCZDI' '1010'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RC27X-ENTRY_ACT'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENT1'.
PERFORM bdc_field USING 'RC27X-ENTRY_ACT'
c_position.
CA02 Material Assignment - Delete
PERFORM bdc_dynpro USING 'SAPLCZDI' '1010'.
PERFORM bdc_field USING 'BDC_CURSOR'
'MAPL-MATNR(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=LOE'. " trash can
PERFORM bdc_field USING 'RC27X-ENTRY_ACT'
c_position.
Acknowledge Pop-Up Screen
PERFORM bdc_dynpro USING 'SAPLSPO1' '0100'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=YES'.
CA02 Material Assignment - Green Check OK
PERFORM bdc_dynpro USING 'SAPLCZDI' '1010'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RC27X-ENTRY_ACT'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BACK'. " check mark
PERFORM bdc_field USING 'RC27X-ENTRY_ACT'
c_position. -
Odi os command not working with agentservice agent.
dear all,
odi os command not working with agentservice agent but with local agent it work fine.. and user is administrator.
kindly solve it
Regards
NaseerHi,
you referred to oscommand, so are you executing a .bat fille? if yes, where exactly does the .bat file reside, local machine or on network share?
Also, follow these couple of documents, they may be helpful to you.
859215.1 and 424703.1
Regards
Srikanth -
Illustrator Short Commands Not Working
Hi Team,
My illustrator CS6 short commands have stopped working.
Any time I try to use any CMD + Key, illustrator will not react.
This has been on going for a few months, I have tried resetting preferences but nothing has changed.
If someone could please help.
Thanks,
BrandonHi Jacob,
I have tried resetting preferences and few other options.
Anytime I press the CMD key the option at the bottom just changes from selection to direct selection, if that helps.
Should I uninstall and reinstall illustrator?
I no longer have my access key.
Thanks,
Brandon
Date: Wed, 8 Jan 2014 15:39:58 -0800
From: [email protected]
To: [email protected]
Subject: Illustrator Short Commands Not Working
Re: Illustrator Short Commands Not Working
created by Jacob Bugge in Illustrator - View the full discussion
THS,
You may try the following (you have tried/done some of them already) and see whether it helps (the following is a general list of things you may try when the issue is not in a specific file; 3) and 4) are specifically aimed at possibly corrupt preferences):
1) Close down Illy and open again;
2) Restart the computer (you may do that up to 3 times);
3) Close down Illy and press CtrlAltShift/CmdOptionShift during startup (easy but irreversible);
4) Move the folder Other options (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
Even more seriously, you may:
6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
http://www.adobe.com/support/contact/cscleanertool.html
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5994475#5994475
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5994475#5994475
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5994475#5994475. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Illustrator at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0. -
Why does default keyboard shortcut for show/hide baseline grid (opt+command+') not work?
Here's where you need to change the settings: System Preferences > Keyboard > Keyboard Shortcuts:
Maybe you are looking for
-
Apple built-in vpn client and dhcp hostnames
We have a number of Mac clients in our office which uses MS for dhcp and dns. I've noticed that the mac clients when wired directly into the office network successfully get a dhcp lease and report their hostnames accurately to the dhcp server. Howeve
-
Brand new ipod touch won't sync. windows uses MTP driver, not ipod driver.
The apple usb driver is installed correctly, but under the portable devices in the device manager it shows ipod touch, but when you check the driver it using the microsoft MTP driver, the driver is dated 2006 and the manufacturer is microsoft. I can'
-
Planning in EC-PCA with material number
We have a requirement to enter Revenue plan data in PCA by using Profit Center & Account number & Material number. However, I do not see 'material' as a characteristic that can be added to the plan layout. The only available field is 'Represent
-
Is LSO content player on an independent server?
We try to install/configure LSO. When it comes to the content player, we are not sure whether it is an add-on to ERP or EP. Would you please explain ? Thanks!
-
Why can't I point the Video Importer to a specific USB drive directory
When I (am force) to use the Video Importer (because my clips are on a USB drive) it seems to find and select all videos on this USB drive. This is not what I want. I want to browse to the directory (on the USB drive) that I created. It contains t