LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cygwin root (https://www.linuxquestions.org/questions/linux-newbie-8/cygwin-root-939815/)

mnnasr 04-14-2012 02:33 PM

cygwin root
 
how to use root user in cygwin?

pan64 04-15-2012 10:00 AM

in windows you will not find root, but admin, or any user with admin rights. You need to know its password to log in and you can start cygwin

mnnasr 04-15-2012 10:09 AM

how to set a cygwin root?

mnnasr 04-15-2012 10:10 AM

how to switch user mode in cygwin?(root user)

pan64 04-15-2012 10:13 AM

http://superuser.com/questions/12241...mand-in-cygwin
http://stackoverflow.com/questions/4...lent-in-cygwin

suicidaleggroll 04-15-2012 10:20 AM

Cygwin does not have its own accounts. The only accounts on the system are the Windows accounts, with the Windows passwords. If you wanted there to be an account called "root", then you could use Windows to create an account called "root", but there would be nothing special about it, it would just be another user account with a funny name. Any regular Windows user that has admin access will have "root" privileges in Cygwin.

pan64 04-15-2012 12:06 PM

Quote:

Originally Posted by mnnasr (Post 4653282)
how to switch user mode in cygwin?(root user)

in windows you have a right-click/run-as menu to execute anything using another account. Cygwin has no such feature, but obviously you can try to find out the action behind that menu and start it from cygwin

mnnasr 04-15-2012 02:24 PM

how to change $ to # in cygwin?

pan64 04-16-2012 12:34 AM

PS1='#'

mnnasr 04-20-2012 02:52 AM

how to creat sudo command in cygwin?

---------- Post added 04-20-12 at 03:52 AM ----------

In cygwin windows, when I use su command, it shows:
su: user root does not exist.

How to add root user?

pan64 04-20-2012 03:15 AM

it is not possible. the only way to change user on windows is to use the "run as" menu. If you need admin rights you need to set it using windows tools.

mnnasr 04-20-2012 03:27 AM

I can't seem to find any cygwin forums anywhere and was hoping someone here could help me out since cygwin emulates linux. When I do 'su' in cygwin I get "user root does not exist." I was trying to switch to root because I was hoping it would fix another problem I've been having with cygwin. Everything that gets created from cygwin is read-only. Does anyone know how to fix either of these problems?

edit* Welll I found that su isn't ported, but still don't get why cygwin makes everything read only.

mnnasr 05-13-2012 03:58 AM

Run traceroute?
 
Can anyone compile the traceroute source at sourceforge in cygwin envirounment ?
Or where can i find compiled it?

pan64 05-13-2012 04:47 AM

that is tracert on windows

chrism01 05-13-2012 07:45 PM

The point is that cygwin gives you the cmd line env (on top of MSWin) that you'd find in Linux ... It does NOT install Linux, so you won't find eg 'root' user etc ...


All times are GMT -5. The time now is 03:19 AM.