LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 02: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, 10:00 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
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, 10: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, 10: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, 10:13 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
http://superuser.com/questions/12241...mand-in-cygwin
http://stackoverflow.com/questions/4...lent-in-cygwin
 
Old 04-15-2012, 10:20 AM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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, 12:06 PM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
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, 02: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, 12:34 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
PS1='#'
 
Old 04-20-2012, 02: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, 03:15 AM   #11
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
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, 03: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, 03: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, 04:47 AM   #14
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
that is tracert on windows
 
Old 05-13-2012, 07:45 PM   #15
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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



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 12:39 AM
Could I get rid of Cygwin.dll/Cygwin1.dll in program compiled under Cygwin ? Kunsheng Programming 1 05-17-2009 08: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 03:37 AM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration