Making nano the global editor (including root user)?

Vi isn't my strong suit so I decided to make nano my global editor by editing my /etc/profile file. However, whenever I do something like 'sudo crontab -e', it still opens it in vi, how can I force it to open in nano?
EDIT: I didn't really mind vi for edting before but I updated my system yesterday and the behavior of it's changed for some reason. Before I was able to use the arrow keys to navigate text files, even in insert mode but now, it inserts characters when I try to use the arrow keys in insert mode. So to edit the files, I have to enter insert mode, do the editing that I want in one location, exit insert mode, move onto the next location, etc. It's really annoying, that's the main reason I want to use nano instead.
-SMRT
Last edited by iamsmrt (2009-09-21 19:14:37)

ugkbunb wrote:
iamsmrt wrote:I think that's only for your user and doesn't work for root/sudo.
couldn't u just make a .bashrc/.zshrc in your /root folder with the same export?
Tried it, it didn't work.
Doing that and editing my /etc/profile to export a VISUAL variable allows me to edit my crontab with nano when I'm logged in as root. However, when I try "sudo crontab -e" logged in as any user (including root), it opens my crontab in vi.

Similar Messages

  • Problem in running servlets over the net & in non-root user mode(FC-4)

    I have installed Tomcat 5.0.28 and it is running
    successfully in Fedora core 4,I wrote a servlet,to access a mysql database and it is running correctly,but when i logged
    onto non-root user, when i call the servlet through the
    html page i get "page not found error" .This is happening even when i do it from other system.
    I thank in advance if any could help me in this case

    Did you try using %20 instead of a space?  I know it works for URLs...worth a shot.

  • [login root user] - increase the time for authentification ROOT user in SH

    Hello,
    We have a server in production when OS version MACOSX 10.4.11 Tiger
    The last week our monitorin system failed because the ssh session return time out.
    I try login from Terminal and X11 and the time for autentification the ROOT sh session is betwen 40 and 80 seconds. (login to SSHD, login in sh shell, login in xterm, ......
    Why root autentification in SSH an SH login have increased? Can you help me?
    Marc

    Hi Marc, and a warm welcome to the forums!
    No expert here at all, but does this offer a clue...
    http://search.cpan.org/~stevegt/IPC-Session-0.05/Session.pm

  • HT1528 I can not find the enable root user in, I am using Lion

    I can not find the enable root user in, I am using Lion

    First off, it is a "Bad" idea to enable 'root', as that is the one known account that exists on every Unix system.  If 'root' is enabled, it makes it much easier to break into a Mac via the one account that has absolute control over everything.
    Having said that...
    i too do not observe in editor section enable root user when I perform what Kappy offered in link.
    Did you click on "Login Options" to get the "Join..." button?
    Did you click on "Open Directory Utility" ?
    Did you go to the Menu Bar and click "Edit"?  It should be right there 2/3's of the way down the "Edit" menu -> "Enable Root User"
    If you want another way.
    Start an Applications -> Utilities -> Terminal session
    sudo su -
    password:  <enter your admin password here>
    passwd
    Changing password for root.
    New password:
    Retype new password:
    You have now enabled 'root'.  I hope you gave 'root' a very VERY STRONG password, as you have just opened yourself up for script kiddies to go after your root account.

  • Trouble enabling root user on mavericks

    I am trying to install the utility qprint and in order to install it in the location /usr/local/bin, I need to enable root user which I of course I plan to disable after executing the command. I have followed the instructions to the point of opening the Directory Utility but I do not see the 'Enable root user' option. I see 3 tabs, Services, Search Policy, and Directory Editor. I've poked around in all 3 tabs but do not see the option to Enable Root User. I have 2 questions: 1) Is there another way for me install the qprint utility without having to go through this? and 2) If not, what am I missing? Thanks in advance for any guidance.

    Thanks Niel ... for some reason I was thinking that the edit described was located in the window - didn't even cross my mind to look at the menus above. Thanks again for your help.

  • Mountain Lion won't allow me to enable root user

    Hi, I'm new to everything Mac, but I'm trying to learn.  Just purchased a used mid-2011 iMac from an individual.  I love the iMac.  Just a few kinks to work out.  One is that he had originally named either the user account or home directory (I still can't figure out which) and i'd like to change that name.  I found an Apple support article on this (Article HT1428) and I am hopeful it will work for me.  However, the first step is to enable the root user.  I went to Article PH11331 to follow steps to enable the root user.  However, when I select Edit from within the Directory Utility, I am unable to select "Enable Root User", or even "Disable Root User" or "Change Root Password" for that matter.  These options are either not there or are greyed out ("Enable Root User" is greyed out).  So I have failed to even jump the first hurdle (enabling root user) towards my goal of changing the user account or home directory name (sorry I don't know which is which).  Can anyone offer some advice please?  Thanks!

    Mac Basics: Time Machine
    Back up all data to at least two different storage devices.
    Boot into Recovery, launch Disk Utility, and erase the startup volume. This operation will destroy all data on the volume, so you had be better be sure of your backups. Install OS X. If your Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade, so make a note of those before you begin.
    When you reboot, you'll be prompted to go through the initial setup process. That’s when you transfer the data from one of your backups. For a walkthrough, see here:
    Using Setup Assistant
    Don't transfer the Guest account, if it was enabled on the old system.
    Note: You need an always-on Ethernet or Wi-Fi connection to the Internet to use Recovery. It won’t work with USB or PPPoE modems, or with networks that require any kind of authentication other than a WPA or WPA2 Personal password.

  • I've configured arch as root user, this gives problems as normal user

    Hi!
    I've installed arch and openbox on my computer. Since "startx" only would start if I was in root
    I've been configuring the whole system as root user. When I now try to start "startx" as normal
    user it works and openbox starts up too... the problem is that all my configurations disappear.
    Openbox, bmpanel, nitrogen etc. goes back to default settings. I guess it has something to do with
    the rights my normal user has, but since I'm still kinda noob I really don't know what to do.
    Anyone know what the problem might be?
    Thanks!

    Now it seems the user rights on my computer are kinda... wrong. Since I've set up most of my system from root user
    the user rights for my normal user are a bit off. All files in ~/ I have full access to, but other files can't even be
    accessed using sudo. (I get something like "$USER don't have access to this file as root)
    In ubuntu this was set up from the get go so I guess there's a kind of default user rights scheme that I can use as a
    starting point and then configure it for my own use?? What files and folders should my user normally have access to,
    what files and folders when using sudo, and what files and folders shouldn't $USER have access to at all?
    Thanks.

  • Hacker changed root user passwod

    I was hacked into recently and the hacker worked through root user, and now the root user password has been changed. I would like to reset it and find out what has been done to my Mac. Can it been done ?

    I found the answer here. http://discussions.apple.com/click.jspa?searchID=-1&messageID=680165
    Sorry for the trouble. Thanks.

  • To break out of a non-global zone and become root user in the global zone

    Hi folks
    "to break out of a non-global zone and become root user in the global zone through a kernel bug exploit"
    Is this possible and has SUN allready a fix/workaround/patch for that?
    Cheers

    Is it possible there's a bug in the kernel? Sure.
    Someone would need to find and identify such a bug before it could be fixed. I've not heard of the discovery of a bug like this. You could check the bug database at www.opensolaris.org.
    Darren

  • What are the extra 13 paritions? root user security concerns?

    I [was] running Yosemite 10.10.3 on a Late 2014 iMac Fusion Drive SSD and HDD
    This might be a bit confusing, and I need assistance from someone who really knows what they're talking about here.
    When messing around trying to secure my system, I enabled the root user to view certain files, and accidentally did not disable it when I was finished. After this, I unknowingly ran my computer for probably a month as the administrator with the root user enabled, and made number of downloads in the process (which used the same password as root). After recently realizing this, I noticed in my activity monitor that some of my downloaded application were running as root user, not as administrator, as I thought they should be, and I also found malware after running ClamXav.
    Because of all this and my compromised root, I wanted to ensure there was no third party code was deeply embedded in my drive, so I backed my important data, and actually proceeded to (very carefully) separate my fusion drive using 'diskutil' commands, wiping and reformatting everything but the base system. Then, I booted into safe mode to check the "diskutil cs list" and "diskutil list" through the terminal, and was surprised to still find 17 partitions in total, including those in my Logical Volume Group. Command "diskutil cs list" reveals partitions /dev/disk0 as my SSD, /dev/disk1 as my HDD with .efi and recovery,  and /dev/disk2 as the apple base system, and ALSO /dev/disk3 as my HDD again (which is an unusual addition to what I have seen as typical LVG diskutil cs list outputs, though I assume it is just be related to booting from recovery mode with no OS on my disk any longer)
    Command "diskutil list" reveals these disks (/dev/disk0-3), along with small partitions, dev/disk4, /dev/disk5....all the way up to /dev/disk16. All these unknown disk partitions 4-16 range from 0-4mb in size. One of my main questions is simply what all of these extra partitions are.... are they just required hidden partitions only visible through the recovery mode boot?
    Even if so, is there a possibility that my actions explained in the first paragraph have compromised the integrity of ANY of the disks on my drive(s)? I do not want any installs to have access to my root, or to have embedded anything into my core system, regardless of whether they are malicious or not. I did not do a full zero secure wipe, as I figured that would be overkill and wear on my drives,  but am also curious if it is even possible that the base system or other core components could have been injected with any 3rd part code. I know I may seem overly paranoid but I want to ensure that my system does not have any security holes from the start, before I go about re-installing all my software again, some of which opens up security holes, but I am required to have it for my work.
    I want to note that I have already downloaded a new OS through internet recovery mode onto my reconfigured fusion drive, and do not see these extra partitions when I am logged in as a user, however they still appear in recovery mode, re-affirming my assumption that they are simply hidden partitions only seen through the recovery boot menu. I still have not loaded any of my data however, and regardless of whether or not the extra /dev/disk partitions I noticed are simply hidden apple boot partitions, any advice on whether I should zero-pass wipe any drives and reinstall the OS again to absolutely ensure there are not security holes after having my root user compromised would be greatly appreciated. I could even resort to a full dban and use a snow leapord install disc I still have, but do not want to put extra wear on my drive it there is no chance these core drives were compromised. Sorry for not posting a picture of my terminal output as well; I was unable to setup an ssh connection to do a screen shot from the recovery partition. And thank you ahead of time to anyone who takes the time to read this and give me any advice.

    These are photo screen shots with the UUID's covered, showing the output of "diskutil cs list" and "diskutil list".
    I need to note that I have since re-separated the fusion drive in and then did a secure erase 1 pass of zeros over the HDD thinking that would solve the problem after realizing that these were not apple boot components, but I checked the output of "diskutil cs list" and "diskutil list" again and they were all embedded in there just as before. In response to someone elses comments I have made multiple encrypted .dmg files, but I thought I have only made around 4 or 5 EVER, not all these other ones, and was unaware that they stay embedded in your drive as partitions even after reformatting it. I also see that part of disk one and part of disk three are still fused together as a LVG, which makes this even more confusing. I cannot understand how all these partitions ended up like this, I did not intentionally add a SINGLE partition to my drive, and never separated the fusion drive until just the other day when I noticed all these extra partitions that couldn't be deleted. I'm beginning to the think the only solution is to do a one pass DBAN over both the drives, and then, (hopefully) I will be able to re-attached them in a fusion drive (which I have been able to do once now), and use an old snow leopard install disk to upgrade back to my Yosemite. Is that my best bet, and are there any risks involved with even doing that? If anyone has any other recommendations on a a simpler, safer way to delete all this extra stuff, and just get myself back to the core components so I can re-fuse my fusion drive and download as fresh OS, I would be beyond grateful.

  • What makes the "Enable Root User" option available?

    I've read the articles on enabling and disabling the root user.  They all get to the Open Directory Utility where you need to "Choose Edit > Enable Root User" .  I can successfully do this on MacBook Air with Lion, but not my Mini with Mavericks because Enable root User is not enables (grey).  WhatdoI need to do to enable it, or another way, what would cause it to be disabled?

    cdefromtacoma wrote:
    Never mind.  I have decades experience with Unix/Linux etc. (just not so much with OS X), and in this instance I know I need root.  Besides, if not this time, then sometime soon.  Thanks for your efforts though.
    All the more reason for my question. You can always get root via sudo. If you didn't have that experience with UNIX then it might be a more difficult question of explaining how to use the Terminal. The only reason to enable the root user is to perform an Aqua login as root. All of the system-level operations are far more easily done in the Terminal than in the UI. Plus, nobody, including Apple, ever enables root so there is no telling what performing UI actions as root will do. I'm not being pedantic here. I am just repeating what I hear from Apple. I filed a bug report on the buggy "enable root" operation and Apple's response was literally "why not just use sudo?".

  • I can't disable the root user

    The OS X says:
    "You should disable the root user if you have no further need of it. A root user can modify and delete any file in the system including system files not available to other users. Having an enabled root user on your system eliminates an important layer of security for your system."
    In order to disable the root user (System Administrator), the OS X says:
    Open Directory Utility, located in the Utilities folder in the Applications folder.
    Open Directory Utility
    Click the lock to make changes, and then enter an administrator name and password.
    Choose Edit > Disable Root User.
    The problem is that the option Disable Root User is not displayed. There is only: Enable Root User
    Is there any other way for removing the System Administrator from the users log in options, when the computer starts?

    Hello Kappy.
    There is something weird about this issue.
    When I bought the machine, the vendor opened it and initiated the system for the first time at the store.
    He typed some random stuff and told me I could change it at home.
    Later, when I tried to open Safary, a keychain asking for a password always appeared, but It wouldn't block the access. It was just annoying. I didn't know any password, so I followed the manual to change the original password.
    I don't remember exactly what happened, but after initiating the system with the start up disk 1, and setting a password for the "My Account" user, that password still didn't work for unlocking the keychain.
    Then I started again with disk 1 and selected the other option: System Administrator (root), setting a password for it.
    After that I could operate the access to keychain.
    In System Preferences > Accounts display, the only available user is the original one that the vendor typed at the store, and under its name, referring to it, there is: "Admin"
    So it seems that there is two Administrators, but the root one is the most powerful, and it always appears in the login options under the name "Other..."
    I'm puzzled

  • How to setting the root user profile?

    It seems that I can't fine any complet manual to introduce how to setting the root user profile file which locate at /etc/profile? Who can help me find out or figure it out

    first /etc/profile is a global profile for the system
    its not only specific to root
    from here you can configure the system wide paths
    Regardless of the shell you are using, when you first log in your system generally runs the system profile file, /etc/profile. This file is generally owned by the system administrator and is readable (but not writable) by all users.
    After your system executes the system profile, it runs the user profile. The user profile is one (or more) initialization files that define your working environment. For example, if you're in the CDE environment your system checks this file (or set of files) each time you start a new terminal or window.
    refer this::
    http://www.shrubbery.net/solaris9ab/SUNWabe/ADVOSUG/p33.html
    man page here
    http://www.unix.com/man-page/OpenSolaris/4/profile/

  • Can I enable the root user account from the log in screen when I am locked out of the machine?

    Hello everyone,
    I am working on my friends mac to get it ready to sell. I went into the advanced options of the user and changed the name of the account. That's all I changed. I did read the warning that said if anything was changed it could cause damage, that's why I only changed the name of the user account. I didn't want to mess with anything else. Well, needless to say, I am locked out of the machine. Apparently the root user, system administrator, account was not enabled and I am stuck at the screen that I can get to with my installation disc. So how can I enable the root user account and get back onto the machine from the screen I am at? Can I enable the root user from terminal? I spent a good 8 hours yesterday researching this topic and have come up empty. Changing passwords from commands in terminal is not the problem. I am given just one account to choose from to log on and it's not accepting the password because of the changes I made in the advanced options menu.
    Is there any hope of getting this thing going again? Or have I just screwed myself over?
    Thanks for your help!
    Leah

    You can reset the password.
    http://pondini.org/OSX/Password.html
    Do you need to recover data from it before you sell it?  If not you can just wipe the disk and prepare it for sale.
    See  > Apple What to do before selling or giving away your Mac
    http://support.apple.com/kb/HT5189?viewlocale=en_US&locale=en_US
    Also See Thomas Reed's How to Prepare your Mac for sale
    http://www.thesafemac.com/how-to-prepare-your-mac-for-sale/
    and this thread
    https://discussions.apple.com/thread/5474062?tstart=0

  • How to access the global data in user exit.

    Hi All,
    How to access the global data in user exit.
    the question is that when we were writing a code in the FM. i need to read data from the standard program like newly created documen and this document number need to be accessed in my program.
    this document number is not imported to the FM i needed to access for frther proceed.
    Thanks in advance.

    Hi,
    See the below PDF file by Jeff Goldstein. There you can find all the details about accessing data outside of the exit.
    [SAP User Exits and the People Who Love Them|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8]
    This will help you to solve your problem.
    Regards
    Karthik D
    Edited by: Karthik D on Dec 2, 2008 4:18 PM

Maybe you are looking for

  • SAP Moble Platform 3.0 with Agentry 7.0 application configuration

    Hi, we try to migrate from SMP 2.3 to SMP 3.0. We installed the MobilePlatform3 as development server and the SDK 3.0 SP04 PL01. After that we import the 2.3 project in the new eclips with the agentry  editor plugin for 7.0.3. We checked if all trans

  • Changing distribution recipient in a form?

    I created a simple form, only 4 fields, for our HR manager in Acrobat Pro 9. I would like the HR manager to gather this data autmatically with Excel after each co-workers fills out the form and submits the data. Can this be done? Thank you.

  • HT1296 computer crashed lost all music on my computer can i transfer them from my ipod to ituns

    my computer crashed i had to reinstall windows i lost my music i want now if i can use my ipod to transfer my music back to itunes

  • Import mdl file problem

    Hi , i have oracle 11.1.0.7 on windows 2003 SP2 32 bit , i imported a MDL file created by oracle 11.1.0.6 (windows 2003 SP2 32 bit) . i can not run maps correctly and the situation is not stable. do i need any patch or do more activity after importin

  • Parameters, dropdown list limit

    i am using a dropdown list of companies. as part of my parameters to run my report. i think the limit of the dropdown list is 150. how do i make it bigger?  i think i have 210 companies... or something like that thanks, Jon