LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-14-2012, 03:33 PM   #1
mnnasr
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Rep: Reputation: Disabled
cygwin root


how to use root user in cygwin?
 
Old 04-15-2012, 11:00 AM   #2
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,012

Rep: Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323
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
 
Old 04-15-2012, 11:09 AM   #3
mnnasr
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
how to set a cygwin root?
 
Old 04-15-2012, 11:10 AM   #4
mnnasr
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
how to switch user mode in cygwin?(root user)
 
Old 04-15-2012, 11:13 AM   #5
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,012

Rep: Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323
http://superuser.com/questions/12241...mand-in-cygwin
http://stackoverflow.com/questions/4...lent-in-cygwin
 
Old 04-15-2012, 11:20 AM   #6
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 3,140

Rep: Reputation: 1103Reputation: 1103Reputation: 1103Reputation: 1103Reputation: 1103Reputation: 1103Reputation: 1103Reputation: 1103Reputation: 1103
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.
 
Old 04-15-2012, 01:06 PM   #7
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,012

Rep: Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323
Quote:
Originally Posted by mnnasr View Post
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
 
Old 04-15-2012, 03:24 PM   #8
mnnasr
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
how to change $ to # in cygwin?
 
Old 04-16-2012, 01:34 AM   #9
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,012

Rep: Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323
PS1='#'
 
Old 04-20-2012, 03:52 AM   #10
mnnasr
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
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?
 
Old 04-20-2012, 04:15 AM   #11
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,012

Rep: Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323
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.
 
Old 04-20-2012, 04:27 AM   #12
mnnasr
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
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.
 
Old 05-13-2012, 04:58 AM   #13
mnnasr
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Run traceroute?

Can anyone compile the traceroute source at sourceforge in cygwin envirounment ?
Or where can i find compiled it?
 
Old 05-13-2012, 05:47 AM   #14
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,012

Rep: Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323Reputation: 1323
that is tracert on windows
 
Old 05-13-2012, 08:45 PM   #15
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
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 ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
user root does not exist (Cygwin) homer_3 Linux - General 1 07-30-2009 01:39 AM
Could I get rid of Cygwin.dll/Cygwin1.dll in program compiled under Cygwin ? Kunsheng Programming 1 05-17-2009 09:30 PM
Have you ever used cygwin, i've met a problem with the command stat from cygwin andy820303 Linux - Newbie 0 03-11-2009 04:37 AM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 05:14 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration