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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
04-14-2012, 02:33 PM
|
#1
|
LQ Newbie
Registered: Apr 2012
Posts: 7
Rep: 
|
cygwin root
how to use root user in cygwin?
|
|
|
04-15-2012, 10:00 AM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,497
|
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
|
|
|
04-15-2012, 10:09 AM
|
#3
|
LQ Newbie
Registered: Apr 2012
Posts: 7
Original Poster
Rep: 
|
how to set a cygwin root?
|
|
|
04-15-2012, 10:10 AM
|
#4
|
LQ Newbie
Registered: Apr 2012
Posts: 7
Original Poster
Rep: 
|
how to switch user mode in cygwin?(root user)
|
|
|
04-15-2012, 10:13 AM
|
#5
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,497
|
|
|
|
04-15-2012, 10:20 AM
|
#6
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
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.
|
|
|
04-15-2012, 12:06 PM
|
#7
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,497
|
Quote:
Originally Posted by mnnasr
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
|
|
|
04-15-2012, 02:24 PM
|
#8
|
LQ Newbie
Registered: Apr 2012
Posts: 7
Original Poster
Rep: 
|
how to change $ to # in cygwin?
|
|
|
04-16-2012, 12:34 AM
|
#9
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,497
|
PS1='#'
|
|
|
04-20-2012, 02:52 AM
|
#10
|
LQ Newbie
Registered: Apr 2012
Posts: 7
Original Poster
Rep: 
|
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?
|
|
|
04-20-2012, 03:15 AM
|
#11
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,497
|
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.
|
|
|
04-20-2012, 03:27 AM
|
#12
|
LQ Newbie
Registered: Apr 2012
Posts: 7
Original Poster
Rep: 
|
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.
|
|
|
05-13-2012, 03:58 AM
|
#13
|
LQ Newbie
Registered: Apr 2012
Posts: 7
Original Poster
Rep: 
|
Run traceroute?
Can anyone compile the traceroute source at sourceforge in cygwin envirounment ?
Or where can i find compiled it?
|
|
|
05-13-2012, 04:47 AM
|
#14
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,497
|
that is tracert on windows
|
|
|
05-13-2012, 07:45 PM
|
#15
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,442
|
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 09:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|