CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > LinuxCNC (formerly EMC2)


LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 10-10-2008, 01:06 AM
DrStein99's Avatar  
Join Date: Jul 2005
Location: usa
Posts: 233
DrStein99 is on a distinguished road
root access login

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.
Reply With Quote

  #2   Ban this user!
Old 10-10-2008, 01:54 AM
 
Join Date: Sep 2006
Location: Sweden
Posts: 104
CountZero is on a distinguished road

have you set a password for root and tried to login?
Reply With Quote

  #3   Ban this user!
Old 10-10-2008, 02:03 AM
DrStein99's Avatar  
Join Date: Jul 2005
Location: usa
Posts: 233
DrStein99 is on a distinguished road

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.
Reply With Quote

  #4   Ban this user!
Old 10-10-2008, 02:28 AM
 
Join Date: Sep 2006
Location: Sweden
Posts: 104
CountZero is on a distinguished road

So the problem is not logging in as root but that this causes problems for EMC. Well, don't do it

A bit more helpful, why do you want to log in as root? Perhaps we could find a way around that..
Reply With Quote

  #5   Ban this user!
Old 10-10-2008, 06:42 AM
DrStein99's Avatar  
Join Date: Jul 2005
Location: usa
Posts: 233
DrStein99 is on a distinguished road

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.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-10-2008, 08:02 AM
 
Join Date: Feb 2007
Location: United States
Posts: 8
Jeff Epler is on a distinguished road

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'.
Reply With Quote

  #7   Ban this user!
Old 10-10-2008, 08:16 AM
 
Join Date: May 2008
Location: USA
Posts: 32
Ray Henry is on a distinguished road

Originally Posted by DrStein99 View Post
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
Alex Joni tells me that you can edit a file, /etc/sudoers and change the following to get rid of sudo password. It says;
# Uncomment to allow members of group sudo to not need a password
# %sudo ALL=NOPASSWD: ALL
Just 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
Reply With Quote

  #8   Ban this user!
Old 10-10-2008, 09:10 AM
DrStein99's Avatar  
Join Date: Jul 2005
Location: usa
Posts: 233
DrStein99 is on a distinguished road

Originally Posted by Ray Henry View Post
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
Thanks for the advice. My private networks are protected by commercial grade firewalls at each public entry point, linked by site-to-site VPN.

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.
Reply With Quote

  #9   Ban this user!
Old 10-10-2008, 09:44 AM
 
Join Date: Feb 2005
Location: United States
Posts: 20
SWPadnos is on a distinguished road

Originally Posted by DrStein99
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.
If you want a minimal install (within reason - you can always build your own small distribution, but it's probably too much work), you may want to start with the Ubuntu Server install. It's a much smaller ISO (about 350-450M), which doesn't include any of the standard desktop apps like OpenOffice, Firefox, etc. You can run the standard install script from the linuxcnc.org website to get EMC2. Doing that should get you a system that boots to a desktop, but doesn't have all the extras that normal desktop users "need".

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
Reply With Quote

  #10   Ban this user!
Old 10-10-2008, 10:17 AM
DrStein99's Avatar  
Join Date: Jul 2005
Location: usa
Posts: 233
DrStein99 is on a distinguished road

Originally Posted by SWPadnos View Post
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
Thats mainly where my trip ended last night. I got UBUNTU loaded the way I wanted it, and spent alot of hours trying to load EMC2 on top of that; and actually had to find answers in some chat-log that was posted somewhere about the RTAI and grub loader, something about kernal 24.22 16 (I cant remember version exact).

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.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-13-2008, 10:27 AM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

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
Reply With Quote

  #12   Ban this user!
Old 11-14-2008, 03:54 AM
 
Join Date: Nov 2008
Location: Bidness
Posts: 1
Scott Thornley is on a distinguished road

Originally Posted by DrStein99 View Post
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
I don't know the breadth and depth of your *nix experience, but routinely logging in directly as root is generally frowned upon. Heck, I've hardened systems that were were being installed in .mil and .gov facilities, and a requirement was that root could only log in from the console, and not over the network. Getting physical access to the systems was nearly impossible, so su and sudo were mandatory.

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
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


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




All times are GMT -5. The time now is 05:27 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361