LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Darwin OS X vs. Windows XP (http://www.linuxquestions.org/questions/linux-newbie-8/darwin-os-x-vs-windows-xp-486612/)

Afiyf 09-24-2006 07:21 PM

Darwin OS X vs. Windows XP
 
I am having trouble understanding the Darwin Terminal even though I know my way around the Bourne Shell.

Q 1: How do I connect to a Remote server from my PC using Terminal?
With DOS, or SSH, I establish the connection and enter into it.
I am told WebDAV (Web-based Distributed Authoring and Versioning) is a way to connect. Is there another way without using Darwin?

Q 2: How do I become the root user by using su if I don't have the password I used to log into Mac OS X?

[darwin:~] afiyf$ su
Password:

IBall 09-24-2006 08:04 PM

Welcome to LQ!

1) SSH is installed by default on OS X. You can connect exactly the same as on any other operating system:
Code:

ssh user@remoteHost
2) OS X uses Sudo, and disables root logins by default. You can execute any command with root privileges by adding sudo before the command, eg:
Code:

sudo ls /etc
will run the ls command with root privileges. It will prompt you for your users password. You can get a shell with root privileges using the command "sudo -s" which will prompt you for your users password.

I hope this helps
--Ian


All times are GMT -5. The time now is 09:11 AM.