How to set new sudo password prompt?

Hi guys, i've a problem with sudo!
I want set a new password prompt for me but unfortunately don't how to do...
I set  a defaults line in sodoers file with this syntax:
Defaults     passprompt="MyPass:"
but don't work...
I tried also start sudo with -p paramenter: sudo -p "Mypass:" but nothing
Someone can help me please...:(

skymt wrote:
Actually, sudo has an option for this:
sudo -p 'Enter your password, %u:'
'%u' will be replaced with your username. You can also use %H or %h for the hostname with or without the domain, %U for the username sudo will use to run your command, or %% for an actual percent sign.
If you want to set a permanant prompt, either set the environment variable "SUDO_PROMPT" or set "passprompt" in /etc/sudoers using visudo.
I tried this solution but don't work for me..
If i try to do:
# sudo -p 'My Password:' i've "Password" for pass prompt..
I've re-checked the sudoers file, is this:
# sudoers file.
# This file MUST be edited with the 'visudo' command as root.
# See the sudoers man page for the details on how to write a sudoers file.
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
Defaults passprompt="Password:"
# Runas alias specification
# User privilege specification
root ALL=(ALL) SETENV: ALL
# Uncomment to allow people in group wheel to run all commands
# and set environment variables.
%wheel ALL=(ALL) ALL

Similar Messages

  • HT5622 hi. i bought iphone 5 witch was locked, i made factory reset and now phone asking apple ID and pasword witch i dont know. i was writing to seller but he is not answering me. how to set new account for my iphone 5 what i could use it?

    hi. i bought iphone 5 witch was locked, i made factory reset and now phone asking apple ID and pasword witch i dont know. i was writing to seller but he is not answering me. how to set new account for my iphone 5 what i could use it?

    The iPhone has a feature called "Activation Lock" described here:
    http://support.apple.com/kb/PH13695
    Without that Apple ID, you will not be able to use that iPhone.

  • HT4061 how do I set up my iPhone5 voice mail. I haven't set up a password, yet it tells me my password is incorrect. I don't know how to set up a password.

    how do I set up my iPhone5 voice mail? I haven't set up a password, yet it tells me my password is incorrect. I don't know how to set up a password.
    I purchased the phone in a retail store a few days ago. Am trying to avoid making an appointment and going back.  The purchase took 3 hours.

    Have you got Settings > General > Restrictions > In-App Purchases set 'off' - that should stop all in-app purchases. And what have you got 'Require Password' set to on the Restrictions screen (I can't remember what version of iOS that setting came in with, so you may not have it) ?

  • How to set new password if you don't remember old ...

    Hello,
    I can still login with Microsoft account, but Skype keeps rejecting my skype password. Tried to recover it using dialog box, but this doesn't work - it either, moving me rounds and rounds without possibility to set new or view old password, either proposing me to change my Facebook password though my Facebook account isn't linked to Skype. Crazy, isn't it? By the way, those security codes are totally useless in case when smallest string in Skype scripting fails.
    Spend hours reading topics. Nothing that could help. I have never seen any other network, service or software wich was so uhelpful in recovering passwords and feel sorry for what I have to use Skype and not something reliable and trouble-free.
    Still problem remains insolved an I have no clue how to change Skype password in accessible way.
    Thank you for any helpful reply, if ever I will have some at this.. place.

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (103250)

  • How to set username and password at line vty 0 4?

    hi guys,
    would like to know how i can set username and password so when i telnet to the router, i can login as username and password..?
    thks,
    ken

    Hi,
    for a simple telnet password with user name & password, find the steps below,
    aaa new-model
    username password
    line vty 0 4
    password
    login local
    if you wanted different types of users to login with different privilagez,do the following
    username privilege 15 password
    username privilege 5 password
    privilege exec level 15 conf t
    privilege exec level 5 show
    line vty 0 4
    password
    login local
    in the above statement "privilege exec level 15 "will have full access, "privilege exec level 5" will have the limited like "show" related
    hope this helps.
    rate this post if cleared.

  • How to set username and password when using Proxy class for SOCKS5?

    Hi all,
    I use the proxy class for SOCKS5, so need to set username and password, I don't find where can I set the value. whether the API support it.
    Thanks in advance!

    System.getProperties().put("proxySet", "true");That does nothing. Remove.
    System.getProperties().put("proxyHost", getProxyHost());
    System.getProperties().put("proxyPort", getProxyPort());You should be setting socks.proxyHost and socks.proxyPort here.
    System.setProperty("java.net.socks.username", getSOCKSUsername());
    System.setProperty("java.net.socks.password", getSOCKSPassword());
    Authenticator.setDefault(new ProxyAuth(getSOCKSUsername(), getSOCKSPassword()));You either need the first two lines or the third, not both. See the last link posted above.
    1. After I set the value, I connect internet by proxy, how the proxy server knows the values?Because Java tells it during the SOCKS handshake.
    2. In my app, I just set the values in the system properties, then JVM does remaining work? Remaining work is not concerned?Should be OK unless you have to connect to a different SOCKS proxy from the same JVM, but that kind of thing is problematic anyway due to the curious Authenticator design which is set globally, not per connection as you might expect.

  • How to prevent the regular password prompts when watching a movie on my MacBook Air?

    Hello everyone.
    I recently started renting movies from the iTunes store and watched them on my MacBook Air since I don't have an appleTV. (In fact on my TV connected via HDMI cable to the MacBook but I think that doesn't change the cause)
    Now every now and then a automatic password prompt kicks in overlaying the movie, so I have to stand up each time and type in the administrator password in the middle of the movie. This happens maybe about every 30-45 mins. Needless to say this is extremely unpleasant when watching a movie. Unfortunately I cannot tell you which programm causes the prompt since I always close all other programms other than iTunes.
    Is there a way to temporarily prevent all automatic password prompts?
    I hope you can help me,
    Greetings jonezdotcom

    This is taken from Mac Help.  It should guide you in solving your issue.
    Changing the way users log in
    You can require users to enter a password to log in to your computer, or you can turn on automatic login, which automatically logs in a specified user each time the computer starts up.
    Automatic login is useful if you’re the only person who uses your computer, and the computer is always in a safe and secure place. If you have more than one user account on your computer, or if you’re concerned about the security of information on your computer, you should require users to log in with a password. Automatic login is not available for accounts that are using FileVault encryption.
    If you require users to log in, you can change what they see in the login window. You can show a list of users with a picture next to each name and a place to enter the password, or require users to enter both their user name and password.
    To change the way users log in:
    Choose Apple menu > System Preferences and click Accounts.
    Open Accounts preferences
    Click the lock icon to unlock it, and then type an administrator name and password.
    Click Login Options.
    Do one of the following:
    To require users to log in whenever the computer starts up, choose Off from the “Automatic login” pop-up menu.
    To have the computer automatically log in to a particular account when the computer starts up, choose the account from the “Automatic login” pop-up menu, enter an administrator password, and click OK.
    IMPORTANT: Automatic login allows anyone to get immediate access to your computer simply by restarting it. If you turn on automatic login, make sure the computer doesn’t automatically log in to an account with administrator privileges.
    Next to the ”Display login window as,” select how you want the login window to appear:
    To have users select an account from a list in the login window, select “List of users.”
    To require users to type their user account name and password, select “Name and password.”
    To show each user’s password hint, select the “Show password hints” checkbox.
    If you turn on automatic login for yourself, the computer opens your account when it starts up. If you log out, other users see a login window to log in to their user accounts.
    The Login Options pane of Accounts preferences
    Use the Login Options pane of Accounts preferences to change the way the login window behaves to be more secure or set up the way users will log in to their accounts
    PREFERENCE EXPLANATION
    Automatic login
    To have the computer automatically log in to an account at startup, choose the account from the pop-up menu. This is less secure than requiring users to log in, since it allows anyone to use the computer just by turning it on.
    To require users to select an account and enter a password to log in, choose Off from the pop-up menu.
    Automatic login is not available for accounts that are using FileVault encryption.
    Display login window as
    Select “List of users” to have users choose their accounts from a list in the login window.
    Select “Name and password” to require users to type their name and password in the login window.

  • How to set new extreme with old extreme

    how do I set up a gen 3 airport extreme using ethernet wire to newest extreme just bought it yesterday, not set up yet)  to extend  wireless network to far side of house

    I am using my IMac osx 10.8 to make any changes to network and will use it to set up new AEBS,
    Got it, the new AEBS will be the "main" router on the network.
    where I want to put my 3 gen AEBS  as a wired extender of network
    Got it, the older 3rd Gen AEBS will connect to the new AEBS using a wired Ethernet connection and extend the nework.
    Anyway. is this how I should set up my network to extend it with using my gen 3 APBS  and with my new APBS 6h gen?
    Once you have the new AEBS set up and working as your "main" router, other than making the physical Ethernet connection and typing in a device name that you want to use on the 3rd Gen AEBS, AirPort Utility will take care of all the settings for you automatically. You do not need to worry about any of this.
    2nd question, if I get a new AXAC will I get better speeds or will I just get N speeds?
    Not sure what you are asking. Only the new AEBS (and Time Capsule) will deliver 802.11"ac" speeds. Your 3rd Gen AEBS will deliver "n" speeds as will an AirPort Express.
    3rd. can i after I set up a roaming network then use my old AX (A1264) to stream music to speakers/stereo?
    Yes
    will it be able to be wireless, or will the dreded Apple rule of not using 3rd repeater come into play?
    Wireless
    Also do you have any fixes for Roku 3 not playing well with the new APBS
    Sorry, I have no "hands on" experience with any Roku products, so cannot help on that.
    Suggested plan:
    First, get the new AEBS set up as your new "main" router and check it out for proper operation. AirPort Utility will guide you through the setup.
    Post back when you have done this and then I will provide tips on how to set up the 3rd Gen AEBS to extend the network using Ethernet. Setup is very easy if you follow the steps.
    Once the 3rd Gen AEBS is setup and working, then the A1264 AirPort Express will get attention. Setup will very easy using AirPort Utility.

  • How to set values to unniverse prompts through java

    Hi
    I am using JAVA -BOSDK to access reports from infoview. I have a problem when any universe level prompt is present in the report. I am able to retrieve it through java when i say documentInstance.getPrompts() and when i set values to this prompt by Prompt.enterValues(String[] parameters) and then either save the report or saveAs another report , my new values dont get applied to the prompt. Only previous values get applied to the prompt. I checked doing prompt.getPreviousValues and prompt.getCurrentValues but when i save the doc then new values are not set.
    here is a part of code iam using: the filterlist contains the ConditionFilterDataItems objects which contain the operands,operator and queryObjectName .I have added multiple prompt.getPrevious and current values for debug purpose.
    private static void applyValuesToUniversePrompt( final DocumentInstance doc, final List filterList )
            final DataProviders dps = doc.getDataProviders() ;
            final DataProvider dataProvider = dps.getItem( 0 ) ;
            final Query query = dataProvider.getQuery() ;
            Prompts newPrompts = doc.getPrompts();
            Prompt newprompt = newPrompts.getItem( 0 );
            newprompt.getPreviousValues();
            newprompt.getCurrentValues();
            final ConditionContainer conditioncont = (OMConditionContainer) query.getCondition() ;
            ConditionFilterDataItem conditionFilterDataItem = null ;
            final Map promptMap = generateInstanceMap( doc ) ;
            //Prompt [] promptArr ;
            for( int i = 0 ; i < filterList.size() ; i++ )
                conditionFilterDataItem = (ConditionFilterDataItem) filterList.get( i ) ;
                final String [] operands = conditionFilterDataItem.getFilterOperand() ;
                PromptsImpl univPrompts = (PromptsImpl)doc.getPrompts();
                Prompt [] promptArr = new Prompt[univPrompts.getCount()];
                for(int k= 0;k< univPrompts.getCount();k++)
                     promptArr[k] =(Prompt) univPrompts.getItem( k );
                if(univPrompts.getCount()==0)
                    promptArr=null;
              if(promptArr!=null)
                for( int j = 0 ; j < promptArr.length ; j++ )
                    final Prompt prompt = promptArr [j] ;
                    final String promptName = prompt.getName() ;
                    final Prompt currentPrompt = (Prompt) promptMap.get( promptName ) ;
                    if( operands [j] != null )
                        currentPrompt.getPreviousValues();
                        currentPrompt.getCurrentValues();
                        currentPrompt.removeValues( currentPrompt.getPreviousValues() );
                        currentPrompt.enterValues( convertStringToArray( operands [j] ) ) ;
                        currentPrompt.getPreviousValues();
                        currentPrompt.getCurrentValues();
                        doc.setPrompts();
                        newPrompts = doc.getPrompts();
                        newprompt = newPrompts.getItem( 0 );
                        newprompt.getPreviousValues();
                        newprompt.getCurrentValues();
            //doc.setPrompts() ;
            doc.refresh();
            doc.save();
            newPrompts = doc.getPrompts();
            newprompt = newPrompts.getItem( 0 );
            newprompt.getPreviousValues();
            newprompt.getCurrentValues();
           // dataProvider.runQuery() ;
            doc.refresh();
            doc.saveAs( "universePrompt2",7148,null,null ) ;
             doc.closeDocument() ;
    private static Map generateInstanceMap( final DocumentInstance document )
            final Map promptMap = new HashMap() ;
            final Prompts prompts = document.getPrompts() ;
            int count ;
            if( prompts != null )
                count = prompts.getCount() ;
                for( int i = 0 ; i < count ; i++ )
                    final Prompt prompt = prompts.getItem( i ) ;
                    promptMap.put( prompt.getName(), prompt ) ;
            return promptMap ;

    Hi Shruti,
    Can U kindly refer this [thread|BusinessObjects Enterprise Java Software Development Kit (SDK) ??; and reply back.
    Would appreciate your efforts !!!

  • How to set up guest password?

    I still cannot figure out how to set up a guest password on my wireless network.  I'm trying to use 192.168.1.1 but dont see an obvious place to set the information.  And do I have to connect to router to the laptop before making the changes?

    Well what model number router do you have?  If it is a E series you must load and run the Cisco Connect software to configure the Guest Network.

  • How to set new APN on iphone6 plus

    i am using iphone6 plus with IOS version 8.1.2  and try to set a new APN on cellphone, but didn't found the option.
    Why does my Cellular Data not have the APN settings to edit?
    Setting----cellular----(only have data roaming,personal hotspot)
    someone knows how to set a new APN on iphone6 Plus, thank you very much.

    Greetings wangxiaobao,
    You can change the APN setting on your iPhone using the steps in this article - 
    iOS: About cellular data network settings (viewing or editing the APN) - Apple Support
    Thanks for using Apple Support Communities.
    Be well,
    Brett L 

  • How to set a disk password?

    Hello all; please bear with me. I purchased my Macbook Air used and the original owner reset it, which required a "disk password" at startup. I wanted to change it and somehow managed to completely rid of it by turning off FileVault and then turning it back on. My question now is: Why am I no longer required to enter a disk password at startup if File Vault is on?

    Ok, I've seen some other posts about this same issue and it seems to be a mystery. I'm wondering if it has to do with not actually having a user account set up when the laptop is restored to factory settings so a general disk password is set up? I guess my second question is this then: How does requiring a user password when File Vault is on any different from just requiring a user password without File Vault being turned on?

  • How to set  newer version of stored pages option as never using  httpd.conf

    How to set check for newer version of stored pages option(Tem Internet file-> Setting ) as never using httpd.conf file?

    See:
    *http://kb.mozillazine.org/browser.cache.check_doc_frequency
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold(user set).
    *Preferences can be reset to the default or changed via the right-click context menu.

  • DKA790GX Platinum - How to set new ram to 1066

    I have just put together my new system which consists of:
    AMD Phenom II 940
    DKA790GX Platinum Motherboard
    MSI N9800GT Video Card
    500g Sata Drive
    Kingston HyperX 4GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR2 1066 (PC2 8500) Dual Channel
    My problem is I assumed when I installed the ram that the motherboard would automatically set ram to 1066, wrong.  It set it to 800mhz.  I know how to set the dram voltage, but I need someone to tell me how to setup the bios to run the ram at it's correct frequency of 1066.  The info for the ram per kingston site is  5-5-5-15  2.2v  I have tried to read thru all the posts that I could, but I can't get an exact answer on how to do it.  I am asking someone to tell me step by step how to do it in bios with this particular motherboard.  I appreciate any responses to help me out..Thanks

    BIOS, Cell Menu, "FSB/DRAM Ratio" setup to 1:2.66

  • How to set username and password before redirecting to a RESTful webservice

    I am a .Net developer who has developed a webservice used by my ColdFusion colleagues. They are using ColdFusion 9 but I'm not sure if they have incorporated any of the newer features of ColdFusion in their apps. Here is a snippet of how they have been invoking the webmethods:
    <cfscript>
                         ws = CreateObject("webservice", "#qTrim.webServiceName#");
                         ws.setUsername("#qTrim.trimAcct#");
                         ws.setPassword("#qTrim.trimpwd#");
                         wsString=ws.UploadFileCF("#qTrim.webserviceurl#","#objBinaryData#", "#qFiles.Filename#", "Document", "#MetaData#");
                </cfscript>
    As I understand things, the .setUsername and .setPassword correspond to the Windows credentials the CF Admin set when the URL of the .Net webservice was "registered" and given its "name" (for the CreateObject statement above). I have 4 webmethods that are all invoked in this manner and this SOAP protocol works adequately for us. Please note that this ColdFusion web app authenticates anonymous remote internet users by prompting for a username and password and compares them to an application database (i.e. Microsoft calls this "forms authentication"). Because only a few Windows domain accounts are authorized to call this .Net webservice, the above code always uses the same username/password constants and it all works.
    My question involves the newest webmethod added to the .Net webservice. It requires that callers must invoke it as a RESTful service which means it must be invoked by its URL. Here is a snippet of C# code that invokes it from an ASP.NET webclient:
                string r = txtRecordNumber.Text;
                string baseurl = "http://localhost/sdkTrimFileServiceASMX/FileService.asmx/DownloadFileCF?";
                StringBuilder url = new StringBuilder(baseurl);
                url.Append("trimURL="); url.Append(txtFakeURLParm.Text);
                url.Append("&");
                url.Append("TrimRecordNumber="); url.Append(txtRecordNumber.Text);
                Response.Redirect(url.ToString());
    I assume a ColdFusion script could easily build a full URL as above with appended querystring parameters and redirect. Is there some way for the CF code redirecting to a RESTful webservice (by way of its URL) to set the Username and Password to this Windows account mentioned above? When the DownloadFileCF webmethod is hit it must be with the credentials of this special Windows domain account. Can that be set by ColdFusion someway to mimic the result of the SOAP technique (the first snippet above).
    I hope my question is clear and someone can help me make suggestions to my ColdFusion colleagues. Thanks.

    Can you clarify what you mean by "establish a different Windows identity"?  Usually passing identity to a web site or service means adding something to the request's HTTP headers.  This could be a cookie in the case of .NET forms authentication or the "Authorization" header in the case of basic authentication.
    The SOAP web service invocation code you posted does use basic authentication, according to the CF docs "ColdFusion inserts the user name/password string in the authorization request header as a base64 binary encoded string, with a colon separating the user name and password. This method of passing the user name/password is compatible with the HTTP basic authentication mechanism used by web servers."
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec13a13 -7fe0.html
    If you need to mimic the SOAP techinque you should have basic authentication enabled for your REST service endpoints.
    If your authentication method is different then CF developers will need to add the appropriate HTTP headers to their service calls.  Note that calling a REST service from CF would probably be accomplished using the CFHTTP tag if the service is designed to be consumed by the CF server.

Maybe you are looking for

  • Successfully restored my MacBook Air from Time Capsule

    This is one occasion where the Superdrive is useless. Here's why if you have an Air and a Time Capsule you should have bought the USB->Ethernet adapter. Don't leave home without it Yesterday it seemed my Air got screwed up so I had to restore from my

  • Macbook suddenly freezes once a while after newest Snow Leopard update?!

    Please help, my macbook (not the new one) just suddenly freezes once in a while, and I cant do anything at all during the 30-secondish lags. Its not just one app, its the whole computer. Please help!

  • Can't publish from VS 2013 to Azure

    I am trying to publish a website to Azure.  I have a valid Azure account that I can log into using a browser.  But when I try to publish my website from VS 2013 with Update 4 it fails.  If I right click on my project in VS 2013 and choose publish, a

  • Image map rollover show/hide layer

    My client needs a map of the US which has image maps on specific states. I need to trigger rollovers to change the state's color and view info (layer?). I'm having difficulty triggering the rollover with show/hide action on a layer, or even to change

  • Tables updated when a payment is made in R12

    Hi All, Can u please tel me what tables are updated when a payment is made in R12? googled it, but couldnt find ! Thanks and Regards, MPH