image
image

Go Back   macosx.com > Mac Help Forums > HOWTO & FAQs

Reply
 
Thread Tools
  #17  
Old March 15th, 2002, 03:11 AM
Gwailo's Avatar
B.A. Economics (Hon)
 
Join Date: Mar 2002
Location: Ottawa, Ontario
Posts: 330
Thanks: 0
Thanked 0 Times in 0 Posts
Gwailo is on a distinguished road
To login...

Once you're logged into the terminal as yourself, on the command line just type

su root

it will then prompt for root password. This way you can login as root remotely (or lcoally) without enabling root. Also unlike sudo you can perform commands at the shell, without just passing commands as argument (which is my understanding of sudo).
__________________
//Gwailo//

iMac TFT 700MHz G4, 786 RAM, 40GB Internal
DVD-ROM/CD-RW 12x8x32
USB 64MB Flash Drive
Wacom Graphire2 Tablet
Epson 777i Colour Printer
Canon PowerShot S30 Digital Camera
JVC GR-DVF21 NTSC MiniDV Camera
Canon EOS Elan II (35mm)

"Like a beautiful flower full of colour and also fragrant, even so, fruitful are the fair words of one who practices them."
--54th Surtra, The Dhammapada

Reply With Quote
  #18  
Old March 16th, 2002, 10:53 AM
Gwailo's Avatar
B.A. Economics (Hon)
 
Join Date: Mar 2002
Location: Ottawa, Ontario
Posts: 330
Thanks: 0
Thanked 0 Times in 0 Posts
Gwailo is on a distinguished road
You learn something new every day (DNO)

__________________
//Gwailo//

iMac TFT 700MHz G4, 786 RAM, 40GB Internal
DVD-ROM/CD-RW 12x8x32
USB 64MB Flash Drive
Wacom Graphire2 Tablet
Epson 777i Colour Printer
Canon PowerShot S30 Digital Camera
JVC GR-DVF21 NTSC MiniDV Camera
Canon EOS Elan II (35mm)

"Like a beautiful flower full of colour and also fragrant, even so, fruitful are the fair words of one who practices them."
--54th Surtra, The Dhammapada

Reply With Quote
  #19  
Old March 16th, 2002, 06:38 PM
Registered User
 
Join Date: Mar 2002
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
96.9 is on a distinguished road
sudo passwd root

Then there is a prompt for a new password . The root account is setup at factory install without a password so all you have to do is type one in to enable it .

su root

Then enter the password you choose .

You can check your commands if you forget them , just type :

history

You can add new users from the terminal .

Check out the darwinfo faq

http://www.darwinfo.org/faq.shtml

Scroll down to User Management on the faq .

You just have to use 000 for uid and gid to make the new user have root privilages.
Reply With Quote
  #20  
Old March 28th, 2002, 09:28 AM
MDLarson's Avatar
I love my WRX.
 
Join Date: Feb 2002
Location: Minneapolis, MN
Posts: 1,164
Thanks: 1
Thanked 0 Times in 0 Posts
MDLarson is on a distinguished road
OK, totally new Mac OS X guy here;

I created two users initially, and now I just want to have one user. So I deleted the second user and assigned it to "Administrator", not "Matt Larson". So the user is deleted, but the folder is now labeled "username Deleted", and the root is the owner.

As a total newbie, could somebody post very explicit instructions for getting rid of this folder? Sounds like messing with the root access is a little dangerous.

-Matt
edit: red text added!

Last edited by MDLarson; March 29th, 2002 at 11:56 PM.
Reply With Quote
  #21  
Old March 29th, 2002, 12:35 PM
Gwailo's Avatar
B.A. Economics (Hon)
 
Join Date: Mar 2002
Location: Ottawa, Ontario
Posts: 330
Thanks: 0
Thanked 0 Times in 0 Posts
Gwailo is on a distinguished road
rm

Hey Matt,

I had the same problem when I messed up my installation of MySQL.

type the following in terminai:

cd /Users
ls {you should now see the folder "username Deleted"}
rm -r "username Deleted"

You need the quotations marks around he "username Deleted" because it's more than one word (argument) for the rm command. If you don't it'll just look for the folder called 'username' and won't find it.

Now it's gone. BTW now it's GONE, not in the trash...no way to undelete that I know of without special utilities.

HTH
__________________
//Gwailo//

iMac TFT 700MHz G4, 786 RAM, 40GB Internal
DVD-ROM/CD-RW 12x8x32
USB 64MB Flash Drive
Wacom Graphire2 Tablet
Epson 777i Colour Printer
Canon PowerShot S30 Digital Camera
JVC GR-DVF21 NTSC MiniDV Camera
Canon EOS Elan II (35mm)

"Like a beautiful flower full of colour and also fragrant, even so, fruitful are the fair words of one who practices them."
--54th Surtra, The Dhammapada

Reply With Quote
  #22  
Old March 29th, 2002, 04:25 PM
Registered User
 
Join Date: Mar 2002
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
96.9 is on a distinguished road
To do all the heavy stuff you need root access .

Get used to using su root and then su back to your regular user name .

Do the heavy stuff when you aernt online , wait until you are finsihed and everything works well than you can go back to regular user and surf safe .

You need root access to chmod and such and thats how you get lots of OS X true power , file permissions for making shell scripts executable and such .

Just get used to using terminal , get a bunch of info off the web , copy to your dektop the webpages you like and study the unix filesystem basics . University used bookstores have some great sales on quality unix and C programming books . It's easy to learn but it takes time to get used to remebering how it all works .

I use terminal for everything now , when you get to an intermediate level you will figure out how to config X 11 and a windows manager of your choice . OS X is a true BSD in the fact its hard to figure out . If you have an old PPC computer or an X86 IBM clone try out suse linux . A basic suse linux user can setup X 11 and a windows manager . I am finding with Aqua and the funky way apple setup OS X it is just like learning a whole new operating system . Its as hard as Open BSD is to learn , free BSD is s simple setup to get er rocking ( just gotta read the manual and copy website info to your box for further reading ) .

Have fun :

96.9
Reply With Quote
  #23  
Old March 30th, 2002, 12:00 AM
MDLarson's Avatar
I love my WRX.
 
Join Date: Feb 2002
Location: Minneapolis, MN
Posts: 1,164
Thanks: 1
Thanked 0 Times in 0 Posts
MDLarson is on a distinguished road
Here's an interesting message:
_________________________
Welcome to Darwin!
[localhost:~] mdlarson% cd /Users
[localhost:/Users] mdlarson% sudo rm -r "rjlarson Deleted"

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these two things:

#1) Respect the privacy of others.
#2) Think before you type.

Password:

_________________________

I tried typing in a password, but the cursor didn't move.
Reply With Quote
  #24  
Old March 30th, 2002, 12:05 AM
blb blb is offline
`'
 
Join Date: Apr 2001
Location: CO, USA
Posts: 651
Thanks: 0
Thanked 0 Times in 0 Posts
blb is on a distinguished road
Quote:
Originally posted by MDLarson
...
I tried typing in a password, but the cursor didn't move.
That's normal, and done for security reasons (so nobody can look over your shoulder to get your password). Be sure to use your password, and not root's (if root is enabled).
Reply With Quote
Reply

Thread Tools

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 Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A bit of nostalgia: A Salute to Mac OS X simX Apple News, Rumors & Discussion 31 March 24th, 2005 07:45 AM
HP Photosmart 1315 and USB Print Sharing zwheeloc Mac Classic System & Software 12 February 6th, 2003 09:20 PM
Apache 1.3.20, garbled apple_hfs_module jiblet Mac OS X System & Mac Software 23 September 21st, 2001 04:26 PM
Disk image mount problem aufreak Mac OS X System & Mac Software 13 May 10th, 2001 07:52 PM
HORIBLE EVIL BUG, Wrecks computer bfc Mac OS X System & Mac Software 12 October 22nd, 2000 03:52 PM


All times are GMT -5. The time now is 10:43 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.