![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
I simply want to login ONCE in the beginning of a boot, be granted root level access and NOT be prompted for a password EVER, at least until the session ends and / or I reboot the computer. Is that possible without jeopardizing the functionality of EMC2? -Erich
__________________ WWW.RAIDGEAR.NET - FFC cables, foam headset replacement parts, and other gadgets. |
|
#3
| ||||
| ||||
| Yes, that was about 18 hours ago. Along with a plethora of other complications which are too long to list, I was able to find more then a couple spots by google searches where others have ran into trouble on the RTAI (or other components) failing because the user was logged in as root and installed, modified, or updated. -Erich
__________________ WWW.RAIDGEAR.NET - FFC cables, foam headset replacement parts, and other gadgets. |
|
#5
| ||||
| ||||
| I dont care who/what I login as; I just want to modify and configure my system without being prompted for passwords in the GUI and SUDO @ in the terminal. -Erich
__________________ WWW.RAIDGEAR.NET - FFC cables, foam headset replacement parts, and other gadgets. |
| Sponsored Links |
|
#6
| |||
| |||
| The manpage sudoers(7) discusses how to configure sudo, including how to tell it not to prompt for a password for certain users. Search for NOPASSWD in the manpage, and remeber to always use 'visudo' to edit the /etc/sudoers file; if you don't, you may end up with a damaged sudoers file that won't allow anyone to sudo. For a more tutorial discussion of sudoers, you might like web pages like http://sial.org/howto/sudo/ found from a google search 'sudo no password'. |
|
#7
| |||
| |||
# Uncomment to allow members of group sudo to not need a passwordJust delete the hash mark (#) at the start of the second line. You'd still have to type sudo before commands that require it. I don't know how gksudo, the graphical sudo system, behaves. Probably pops up the password window and you'd just press enter. The behavior that you want definitely sounds like a real root user. You can set that up if you wish to. I found some info and put links to it here a while back. I've not tried to run EMC2 that way however. Ten years ago or so we had to run EMC as a root user but lately I mostly use sudo. As I say at the link I do create a root user and occasionally log in there when I've got something really serious to do. I did make a mistake while cleaning up a multipartition hard drive the other day. I issued the command "rm -rf" without really thinking about what partition the terminal was in. The computer slowly sunk into the mud. Dumb 'eh! Must be oldtimers disease. I also would not run as root if the box was web connected although Linux is much more secure than other OSs. If you are web connected and insist on running as root, watch out for the secure shell key thing. Issue the ssh-keygen thing and give your root user a serious password there. That password has nothing to do with the root login password and you won't need it unless you are committing your work to CVS with us. The site at the link above also talks about setting up and using a firewall. I'd set one up if the box is anywhere near the web. HTH |
|
#8
| ||||
| ||||
| If I can possibly remove this desktop-pc software like e-mail, games, word-processing, etc... I can fit the whole install on solid-state memory boot. I store my large files, logs, g-code on the fileserver NAS where it belongs. I want this system to only run EMC2 and thats it. -Erich
__________________ WWW.RAIDGEAR.NET - FFC cables, foam headset replacement parts, and other gadgets. |
|
#9
| |||
| |||
Note that you will need to edit the grub boot menu, since it doesn't automatically set the machine to boot the realtime kernel. - Steve |
|
#10
| ||||
| ||||
| That standard install script did not work, for certain over the 5 different tries in the course of 18 hours. If it does, the instructions are missing a crutial probably a 1-liner that I lack the experience in seeing. -Erich
__________________ WWW.RAIDGEAR.NET - FFC cables, foam headset replacement parts, and other gadgets. |
| Sponsored Links |
|
#11
| |||
| |||
| Erich, Do you want this so you can edit files that are owned by root? If so I have a shortcut on my desktop that I drag and drop files into to edit... I'm at my machine shop so if you need this I can reply this evening as I don't remember the exact syntax... John |
|
#12
| |||
| |||
| Sounds to me like you are (were) doing initial system configuration, where you really are doing a bunch of root level work, so sudoing all the time is a pain in the butt. Keeping with the spirit of Ubuntu, I suggest that you just: login as your user sudo su - You're now good to go as root until you exit. When you are done with configuration, you aren't left with a system that is security compromised. And I'm not necessarily talking about security from external users, as I'm talking about security from one's own missteps. Regards, Scott |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I Can't Login Or Stay Logged In! | CNCadmin | CNCzone.com FAQ | 1 | 04-21-2008 09:42 AM |
| Redirect problem when you login | CNCadmin | CNCzone.com FAQ | 0 | 08-01-2004 10:32 AM |
| login again... again... again | coherent | Forum Questions or Problems | 5 | 05-08-2003 04:56 PM |