Incorrect results from 'cygpath -w' when having anaconda installed

2022-11-04 Thread enrique

Hello!

I am having incorrect results from 'cygpath -w':

### I have the cygwin root directory in C:\cygwin64, as confirmed by 
'cmd':

$ cmd
Microsoft Windows [Version 10.0.22621.674]
(c) Microsoft Corporation. Med enerett.

C:\cygwin64\home\Enrique>exit

### Cygwin thinks my home directory is:
$ pwd
/home/Enrique

### But 'cygpath -w' thinks ...
$ cygpath -w /home/Enrique
C:\Users\Enrique\anaconda3\Library\home\Enrique

### Investigating, I found that there is no 'home' in 
C:\Users\Enrique\anaconda3\Library.

### Then I discovered this:
$ mount
C:/Users/Enrique/anaconda3/Library on / type ntfs (binary,noacl,auto)
C:/Users/Enrique/anaconda3/Library/usr/bin on /bin type ntfs 
(binary,noacl,auto)

C: on /cygdrive/c type ntfs (binary,noacl,posix=0,user,noumount,auto)

Huh ??? How does this work?
Is there a way to hide the mounts done by anaconda?

I guess some anaconda binaries want to find the 'Library' directory as 
the root, but cygwin continues to find its own root under C:/cygwin64. 
Why does it get tripped by the anaconda install just when doing the path 
translation?



-Enrique

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


setup doen't run on windows 98

2003-01-13 Thread enrique pazos
Hi, I tried to run the setup program and I got this
message:

This program has performed an illegal operation and
will be shut down.

and the execution ends doing nothing.

I tried to run it in an IBM thinkpad transnote, 64MB
RAM, pentiumIII. What could be the problem?

enrique

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




National characters in the command window

2007-01-15 Thread Enrique Perez-Terron
I have a Norwegian keyboard, and when I type the national characters on the 
command
line, nothing shows up - that is, the æ (the ae ligature) and å (a with ring 
above) keys do not
respond, while the ø (o with slash across) key produces 'o'.  Dead-accent 
key combinations

produce nothing.  The cursor does not advance.

I have a file with the ae ligature in the file name. The command "ls | od -t 
x1" shows that
character as 0xe6, consistent with latin1 or with cp1252. "ls" to the screen 
displays the

file name properly. It seems the problem only affects keyboard input.

In a regular "dos" cmd window I can type file names with national 
characters, and list the file

names.

The environment vairables LANG and LC_* are not set. I have not found any 
setting of these

that make a difference.

The command

   chcp.com

in the bash window returns 437.  In 436, the ae ligature is 0x91.

In a regular dos cmd window, "dir > dirfile" produces a file that contains 
cp437 coded file names.
The ae ligature is 0x91. I determine this by "od < dirfile" in the bash 
window.


Using chcp to set codepage 1252 in the bash window makes the ae ligature 
display as the greek
mu character when doing "ls" to the screen.  "ls | od" still shows 0xe6 
(1252) for the ae ligature.
On input, the o-slash key nno longer produces 'o'. It produces nothing. The 
cursor does not
advance.  Starting a new bash process in the same window does not seem to 
change anything.


I have found so little about this on the net, that I believe I must be 
missing something very

basic in my cygwin installation. Does everybody else have the same problem?

Is there a good description anywhere of how these things work?

Thanks 




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Space in Dir Name with shell script and tar

2007-01-17 Thread Enrique Perez-Terron

From: "Troy" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, January 18, 2007 2:50 AM
Subject: Space in Dir Name with shell script and tar




I am trying to make a shell script to do automatic bckups with tar.

My problem is that tar stumbles on the spaces in the dir names if they are
in a variable.

Probiably best shown by example

The dir I want to back up is
g:/Mark I+/Experimental Data/

I if do this in the script
tar -czvpf $NAME_OF_BACKUP.tgz /cygdrive/g/Mark' 'I+/Experimental' 'Data/*


Try this:

   tar -czvpf $NAME_OF_BACKUP.tgz "/cygdrive/g/Mark I+/Experimental Data"

That is, enclose the name of the directory in double quotation marks, and 
drop the trailing /*



it works fine but if I do this

DIRECTORY_TO_BACKUP="/cygdrive/g/Mark' 'I+/Experimental' 'Data"


Problem: You are enclosing the apostrophes in the double quotation marks. 
That means the

apostrophes become part of the value of the variable DIRECTORY_TO_BACKUP


tar -czvpf $NAME_OF_BACKUP.tgz $DIRECTORY_TO_BACKUP/*


Problem: Bash will replace the variable name with the variable's value, but 
it will not interpret
the apostrophes specially. Interpretation of apostrophes occur at an earlier 
stage. Next, bash
will perform word splitting on the variable's value. This means that the 
spaces contained in

the variable's value will be treated specially, as word splitting points.

Try this

DIRECTORY_TO_BACKUP="/cygdrive/g/Mark I+/Experimental Data"
tar -czvpf $NAME_OF_BACKUP.tgz "$DIRECTORY_TO_BACKUP"

i.e., enclose the variable's assigned value in double quotation marks (or 
apostrophes, if you prefer,
but for your convenience, use a single pair around all of the value. Next, 
enclose the variable
substitution in double quotation marks. This time it must be double quotes, 
not apostrophes,

since apostrophes prevent variable substitution.

You can tack /* at the end if you want, like this "$DIR"/* but if you want 
to back up everything
in the directory it is better to leave out /*. With /*, files and 
directories whose names begin with
a dot (like .bashrc) are *not* included in the backup. (This applies to 
files at the top level.

A file named "$DIR"/some-subdir/.bashrc is backed up with or without /*.)


I get
tar: Removing leading `/' from member names


This is normal.  You are specifying absoluth paths, and then, upon restore, 
you would be forced
to restore to exactly the same path. When tar removes the leading / it 
becomes possible to

restore the data to a different directory, eg to /restored/cygdrive/c/...

Here you see another point. It is better to do

cd "$DIR"
tar cvfpz bakupname.tgz .

with a single dot as the backup directory. Then, upon restore, you do not 
need to have a prefix

of directories cygdrive/c/...



tar: /cygdrive/g/Mark': Cannot stat: No such file or directory
tar: 'I+/Experimental': Cannot stat: No such file or directory
tar: 'Data/*: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors

What am I doing wrong?
--
View this message in context: 
http://www.nabble.com/Space-in-Dir-Name-with-shell-script-and-tar-tf3031755.html#a8423703

Sent from the Cygwin Users mailing list archive at Nabble.com.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/







--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cygwin 1.5.23-2 : I can't use select() with serial device and socket

2007-01-19 Thread Enrique Perez-Terron
You don't show the complete output of the two programs. Do you have a device 
connected to the serial port that echoes the data written? Or  a device that 
provides some data to read? With the first program, how many bytes does it 
read?


Is the serial port set driver set to generate echo locally? On Linux? On XP? 
On both?


The second code write on socket, but it says that serial port isn't ready 
to read.


Your select statement appears to tell that there are no data available to 
read on the serial port.


You should normally write select() read-write loops so that file descriptors 
are entered into the write_fdset only if there is something to write. 
Otherwise the program will be running in a tight loop because the the 
select() returns telling that (e.g) the serial_fd is ready to accept more 
data. The point in using select is to have the program sleep until there is 
something to do.


 while(up_is_open || down_is_open)
 {
   if (up_is_open) {
 has_data(up_buffer))
   FD_SET(space_fd, &write_fdset);
 else
   FD_SET(earth_fd, &read_fds);
   }

   if (down_is_open) {
 if (has_data(down_buffer))
   FD_SET(earth_fd, &write_fdset);
 else
   FD_SET(space_fd, &read_fdset);
   }

   ready_fds = select(max_fd, &read_fdset, &write_fdset, NULL, NULL);
   if (ready_fds < 0) {...}

   if (FD_ISSET(earth_fd, &write_fdset) {...}
   if (FD_ISSET(space_fd, &write_fdset) {...}
   if (FD_ISSET(earth_fd, &read_fdset) {...}
   if (FD_ISSET(space_fd, &read_fdset) {...}
 }

Regards 




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: But it is cygwin related.

2013-04-04 Thread Enrique Perez-Terron
On Thu, 04 Apr 2013 17:46:12 +0200, Frank Farance   
wrote:

[snip]
Now, for whatever reason, a different set of calculations are needed and  
assembler is the best software engineering solution (for whatever  
reason).  As a programmer, I can think of several ways that will cause a  
visual image to appear on the screen with the result, but some of them  
will not be compatible with B with the pipeline:


# Note: B has similar functionality as the "wc" program
$ A | B

[snip]

Frank,
Believe me, there is not much cygwin-ish about this. The easiest way to  
achieve what you describe above, is to write a function in assembly, that  
is called from a C program implementing your A component.


That way you leave it to the gcc toolchain to interface to the I/O  
routines in the standard library, while you can program the actual  
computation in assembly. As others have pointed out, the standard library  
is not quite the drag that you may have thought.


Also, I do not think that there are any clever ways that interface with  
output routines in the cygwin dll any better than the compiler does. You  
could try to browse the source code of these routines with an eye to  
copying some of it into your assembly program, but you will likely find  
that it constitutes a kind of maze that is quite hard to understand, and  
that very few people on this planet understand well. Avoiding this dll  
means intefacing directly with whatever Microsoft offers. Ultimately there  
almost certainly are some kind of "interrupt" assembly instructions that  
the Windows libraries execute, that actually triger the transition to  
Windows kernel space, but again, that is really esoteric stuff that almost  
nobody knows, and that maybe changes between versions of the OS in quite  
hopelessly complicated and unpredictable ways.


To help you get started, I shall hint you, but please bear with me if I  
make some mistake because I have not done this for quite many years.


You will have to google "calling convention" and ask around about the  
specifics of interfacing assembly functions and C code. Such interfacing  
is specific for each compiler, even if there are some standardization  
efforts too -- google "ABI", "cdecl", "stdcall". The ABIs are specific for  
the architecture, and watch out for any differences between x86 and amd64.


The answers are not different for the Cygwin environment as compared to  
Linux or Windows.


Using the gcc toolchain there are some possible simplifications if you can  
write inline assembly in the C function. That way you leave to the  
compiler to arrange the correct calling sequence, but instead you need to  
figure out how to tell the gcc compiler how to place the named arguments  
in specific registers after the function entry. You can even let the tools  
choose the registers, you just refer to them as %0, %1, etc. I remember I  
saw many examples of this in the linux kernel code - I think it was in the  
start-up code or in the syscall interface code. I recommend reading  
http://www.ibm.com/developerworks/library/l-ia/index.html.


Just a small detail: In the assembly files, add an underscore in front of  
the function name label. Omit this underscore in the function call in the  
C code. (Google "name mangling".) -- and remember to declare: extern  
mytype_t myfunction(arg_one_type_t, arg_two_type_t);


Notice that the gnu assembly is somewhat different from the intel assembly  
code.


You may combine writing pure assembly files with inline assembly in the C  
function. To do that you call your assembly code (or even jump to it) from  
the inline assembly in the C function. That way you may implement your own  
calling convention.


Thanks, and good luck.
-Enrique

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



bash /cmd disagree about owner and permissions to executable

2019-12-26 Thread Enrique Perez-Terron
I prefer to have a single installation of python, rather than having to 
remember to install packages for various pythons.

I choose the standard windows 64-bit install of python 3.8
But today when I tried to run a script ...


Heidi@panter ~
$ python3 x.py
-bash: 
/cygdrive/c/Users/Heidi/AppData/Local/Microsoft/WindowsApps/python3: 
Permission denied


Surprise!

Investigating...


Heidi@panter ~
$ ls -ld "$(type -p python3)"
-rwxr-x--- 1 Unknown+User Unknown+Group 0 des 26 19:25 
/cygdrive/c/Users/Heidi/AppData/Local/Microsoft/WindowsApps/python3*


Heidi@panter ~
$ cmd /C "icacls $(cygpath -w "$(type -p python3)")"
C:\Users\Heidi\AppData\Local\Microsoft\WindowsApps\python3.exe 
NT-MYNDIGHET\SYSTEM:(I)(F)
   
BUILTIN\Administratorer:(I)(F)
   
PANTER\Heidi:(I)(F)
   
S-1-19-512-4096:(RX,D,WDAC,WO,WA)


Successfully processed 1 files; Failed processing 0 files

Heidi@panter ~
$ cmd /C "dir /q $(cygpath -w "$(type -p python3)")"
 Volume in drive C is Acer
 Volume Serial Number is 3A2C-1A76

 Directory of C:\Users\Heidi\AppData\Local\Microsoft\WindowsApps

26.12.2019  19.25 0 PANTER\Heidi   python3.exe
   1 File(s)  0 bytes
   0 Dir(s)  155▒760▒214▒016 bytes free



Hey, what is this? Windows reports that the owner of the binary is 
PANTER\Heidi, but /bin/ls reports Unknown+User?


I rebboted, unistalled python and installed the app store version of 
python instead, but nothing changed.


Any suggestions?
-Thanks

0xD6B3CEE5.asc
Description: application/pgp-keys

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple

Re: bash /cmd disagree about owner and permissions to executable

2019-12-29 Thread Enrique Perez-Terron

Den 2019-12-26 22:00, skrev Andrey Repin:

Greetings, Enrique Perez-Terron!

Thanks.
[snip]

Problem reports:   http://cygwin.com/problems.html

See attached cygcheck.out, unaltered.


In particular, show "mount" output and check that you don't have
/etc/{passwd,group} files


Heidi@panter ~
$ mount
C:/cygwin64/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin64/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin64 on / type ntfs (binary,auto)
C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)

Heidi@panter ~
$ /bin/ls -ld /etc/{passwd,group}
/bin/ls: klarte ikke å åpne '/etc/passwd': No such file or directory
/bin/ls: klarte ikke å åpne '/etc/group': No such file or directory

("klarte ikke å åpne" = "Could not open")

Looking around for other symptoms/non-symptoms

Heidi@panter ~
$ cmd /C 'dir /Q C:\Users\Heidi\AppData\Local\Microsoft\WindowsApps'
 Volume in drive C is Acer
 Volume Serial Number is 3A2C-1A76

 Directory of C:\Users\Heidi\AppData\Local\Microsoft\WindowsApps

26.12.2019  19.18  PANTER\Heidi   Backup
13.12.2019  22.52 0 PANTER\Heidi   excel.exe
13.12.2019  14.28 0 PANTER\Heidi   
GameBarElevatedFT_Alias.exe

26.12.2019  19.25 0 PANTER\Heidi   idle.exe
26.12.2019  19.25 0 PANTER\Heidi   idle3.8.exe
26.12.2019  19.25 0 PANTER\Heidi   idle3.exe
12.11.2019  20.45  PANTER\Heidi   
Microsoft.MicrosoftEdge_8wekyb3d8bbwe
13.12.2019  22.52  PANTER\Heidi   
Microsoft.Office.Desktop_8wekyb3d8bbwe
13.12.2019  14.28  PANTER\Heidi   
Microsoft.XboxGamingOverlay_8wekyb3d8bbwe
12.11.2019  20.45 0 PANTER\Heidi   
MicrosoftEdge.exe

13.12.2019  22.52 0 PANTER\Heidi   msaccess.exe
13.12.2019  22.52 0 PANTER\Heidi   msosync.exe
13.12.2019  22.52 0 PANTER\Heidi   msouc.exe
13.12.2019  22.52 0 PANTER\Heidi   msoxmled.exe
13.12.2019  22.52 0 PANTER\Heidi   mspub.exe
13.12.2019  22.52 0 PANTER\Heidi   outlook.exe
26.12.2019  19.25 0 PANTER\Heidi   pip.exe
26.12.2019  19.25 0 PANTER\Heidi   pip3.8.exe
26.12.2019  19.25 0 PANTER\Heidi   pip3.exe
13.12.2019  22.52 0 PANTER\Heidi   powerpnt.exe
13.12.2019  22.52 0 PANTER\Heidi   
protocolhandler.exe

26.12.2019  19.25 0 PANTER\Heidi   python.exe
26.12.2019  19.25 0 PANTER\Heidi   python3.8.exe
26.12.2019  19.25 0 PANTER\Heidi   python3.exe
26.12.2019  19.25  PANTER\Heidi   
PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0

26.12.2019  19.25 0 PANTER\Heidi   pythonw.exe
26.12.2019  19.25 0 PANTER\Heidi   
pythonw3.8.exe

26.12.2019  19.25 0 PANTER\Heidi   pythonw3.exe
13.12.2019  22.52 0 PANTER\Heidi   sdxhelper.exe
13.12.2019  22.52 0 PANTER\Heidi   selfcert.exe
13.12.2019  22.52 0 PANTER\Heidi   winword.exe
  26 File(s)  0 bytes
   5 Dir(s)  156 728 102 912 bytes free

Heidi@panter ~
$ ls -l /cygdrive/c/Users/Heidi/AppData/Local/Microsoft/WindowsApps
totalt 12K
drwx--+ 1 HeidiIngen 0 des 26 19:18 Backup/
-rwxr-x---  1 Unknown+User Unknown+Group 0 des 13 22:52 excel.exe*
-rwxr-x---  1 Unknown+User Unknown+Group 0 des 13 14:28 
GameBarElevatedFT_Alias.exe*

-rwxr-x---  1 Unknown+User Unknown+Group 0 des 26 19:25 idle.exe*
-rwxr-x---  1 Unknown+User Unknown+Group 0 des 26 19:25 idle3.8.exe*
-rwxr-x---  1 Unknown+User Unknown+Group 0 des 26 19:25 idle3.exe*
drwx--+ 1 HeidiIngen 0 nov 12 20:45 
Microsoft.MicrosoftEdge_8wekyb3d8bbwe/
drwx--+ 1 HeidiIngen 0 des 13 22:52 
Microsoft.Office.Desktop_8wekyb3d8bbwe/
drwx--+ 1 HeidiIngen 0 des 13 14:28 
Microsoft.XboxGamingOverlay_8wekyb3d8bbwe/
-rwxr-x---  1 Unknown+User Unknown+Group 0 nov 12 20:45 
MicrosoftEdge.exe*

-rwxr-x---  1 Unknown+User Unknown+Group 0 des 13 22:52 msaccess.exe*
-rwxr-x---  1 Unknown+User Unknown+Group 0 des 13 22:52 msosync.exe*
-rwxr-x---  1 Unknown+User Unknown+Group 0 des 13 22:52 msouc.exe*
-rwxr-x---  1 Unknown+User Unknown+Group 0 des 13 22:52 msoxmled.exe*
-rwxr-x---  1 Unknown+User Unknown+Group 0 des 13 22:52 mspub.exe*
-rwxr-x---  1 Unknown+User Unknown+Group 0 des 13 22:52 outlook.exe*
-rwxr-x---  1 Unknown+User Unknown+Group 0 des 26 19:25 pip.exe*
-rwxr-x---  1 Unknown+User Unknown+Group 0 des 26 19:25 pip3.8.exe*
-rwxr-x---  1 Unknown+User Unknown+Group 0 des 26 19:25 pip3.exe*
-rw

Re: pread() from /dev/sda fails with: Illegal seek

2020-01-11 Thread Enrique Perez-Terron

Den 2020-01-11 15:10, skrev David Balažic:

pread on /dev/sda fails with Illegal seek.


Confirmed on windows 10, 64-bit.

My code:
$ cat t.c
#include 
#include 
#include 
#include 
#include 

int main(int argc, char *argv[])
{
int fd = open("/dev/sda", O_RDONLY, 0);
if (fd < 0) {
fprintf(stderr, "%s. open /dev/sda: %m\n", argv[0]);
exit(1);
}
char *buffer = malloc(512);
if (!buffer) {
fprintf(stderr, "%s: Out of memory\n", argv[0]);
exit(1);
}
int result = pread(fd, buffer, 512, 0);
if (result < 0) {
fprintf(stderr, "%s: pread: %m\n", argv[0]);
exit(1);
}
printf("All right!\n");
return 0;
}

Running in a mintty as Administrator:
$ ./t
./t: pread: Illegal seek

$ uname -a
CYGWIN_NT-10.0 panter 3.1.2(0.340/5/3) 2019-12-21 15:25 x86_64 Cygwin

$ cc --version
cc (GCC) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.


Regards,
Enrique Perez-Terron

0xD6B3CEE5.asc
Description: application/pgp-keys

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple

Member of Administrators, high integrity level, yet crontab compains "need privileged user"

2016-05-03 Thread Enrique Perez-Terron

Hello,

I just tried this:

enrique@rev /usr/local/bin
$ crontab -u Heidi -l
must be privileged to use -u

I understood that "privileged user" under cygwin means "Member of 
Administrators". I am running the mintty window with elevated privileges.


What am I missing? I am not aware of having tinkered with permissions on 
the C:\cygwin\* directories.


Maybe the cause is that there actually is no crontab for user "Heidi". 
If so, the error message is misleading.



Some research:

enrique@rev /usr/local/bin
$ id
uid=197608(enrique) gid=197121(None) groups=197121(None),114(Local 
account and member of Administrators 
group),544(Administrators),545(Users),4(INTERACTIVE),66049(CONSOLE 
LOGON),11(Authenticated Users),15(This Organization),113(Local 
account),4095(CurrentSession),66048(LOCAL),262154(NTLM 
Authentication),405504(High Mandatory Level)


enrique@rev /usr/local/bin
$ type -a whoami
whoami is /usr/bin/whoami
whoami is /cygdrive/c/Windows/system32/whoami

enrique@rev /usr/local/bin
$ /cygdrive/c/Windows/system32/whoami /all

USER INFORMATION


User Name   SID
=== ======
rev\enrique S-1-5-21-2972989697-3341365358-2740921365-1000


GROUP INFORMATION
-

Group Name Type SID  Attributes
= 
  
===
Everyone Well-known group S-1-1-0  Mandatory group, Enabled by 
default, Enabled group
NT AUTHORITY\Local account and member of Administrators group Well-known 
group S-1-5-114Mandatory group, Enabled by default, Enabled group
BUILTIN\Administrators AliasS-1-5-32-544 Mandatory group, 
Enabled by default, Enabled group, Group owner
BUILTIN\Users AliasS-1-5-32-545 Mandatory group, Enabled by 
default, Enabled group
NT AUTHORITY\INTERACTIVE Well-known group S-1-5-4  Mandatory group, 
Enabled by default, Enabled group
CONSOLE LOGON Well-known group S-1-2-1  Mandatory group, Enabled by 
default, Enabled group
NT AUTHORITY\Authenticated Users Well-known group S-1-5-11 Mandatory 
group, Enabled by default, Enabled group
NT AUTHORITY\This Organization Well-known group S-1-5-15 Mandatory 
group, Enabled by default, Enabled group
NT AUTHORITY\Local account Well-known group S-1-5-113Mandatory 
group, Enabled by default, Enabled group
LOCAL Well-known group S-1-2-0  Mandatory group, Enabled by default, 
Enabled group
NT AUTHORITY\NTLM Authentication Well-known group S-1-5-64-10  Mandatory 
group, Enabled by default, Enabled group
Mandatory Label\High Mandatory Level LabelS-1-16-12288 
Mandatory group, Enabled by default, Enabled group



PRIVILEGES INFORMATION
--

Privilege Name Description   State
=== 
= 
SeIncreaseQuotaPrivilegeAdjust memory quotas for a 
processDisabled
SeSecurityPrivilege Manage auditing and security 
log  Disabled
SeTakeOwnershipPrivilegeTake ownership of files or other 
objects  Disabled
SeLoadDriverPrivilege   Load and unload device 
driversDisabled
SeSystemProfilePrivilegeProfile system 
performanceDisabled
SeSystemtimePrivilege   Change the system 
timeDisabled
SeProfileSingleProcessPrivilege Profile single 
processDisabled
SeIncreaseBasePriorityPrivilege Increase scheduling 
priority  Disabled
SeCreatePagefilePrivilege   Create a 
pagefile Disabled
SeBackupPrivilege   Back up files and 
directories Enabled
SeRestorePrivilege  Restore files and 
directories Enabled
SeShutdownPrivilege Shut down the 
system  Disabled
SeDebugPrivilegeDebug 
programsEnabled
SeSystemEnvironmentPrivilegeModify firmware environment 
valuesDisabled
SeChangeNotifyPrivilege Bypass traverse 
checking  Enabled
SeRemoteShutdownPrivilege   Force shutdown from a remote 
system   Disabled
SeUndockPrivilege   Remove computer from docking 
station  Disabled
SeManageVolumePrivilege Perform volume maintenance 
tasks  Disabled
SeImpersonatePrivilege  Impersonate a client after 
authentication Enabled
SeCreateGlobalPrivilege Create global 
objects Enabled
SeIncreaseWorkingSetPrivilege   Increase a process working 
setDisabled
SeTimeZonePrivilege Change the time 
zone  Disabled
SeCreateSymbolicLinkPrivilege   Create symbolic 
links     Disabled


enrique@rev /usr/local/bin
$ ls -ld /var /var/cron

Annoying error messages from setup

2019-03-06 Thread Enrique Perez-Terron
key 
line:

(It's a perl script; shown with line number)


462   return $opts{"strict"} ? $err : 0;


where $err appears to count the fonts not converted.
Looking up the first of the "missing" inifiles, eptex.ini,
I find it belongs to the cygwin package
"texlive-collection-langjapanese-20180414-1"

I have no knowledge of Japanese, and most likely no reason to install 
said package.


The perl script also appears to have a mechanism to declare formats 
disabled,
but the configuration file /etc/texmf/web2c/fmtutil.cnf has the 
following comment:



# Modified for the Cygwin distribution so that all formats are
# initially disabled.  The postinstall scripts will enable those
# corresponding to installed packages.


I suspect that the postinstall script is broken, enabling formats that 
are not installed.
It would take me quite long time to track down how this is implemented 
in the postinstall script.

Who can I report this to?

Regards,
Enrique Perez-Terron

0xD6B3CEE5.asc
Description: application/pgp-keys

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple

mkshortcut fails when run from setup, postinstall/cygwin-doc.sh - not otherwise

2017-12-20 Thread Enrique Perez-Terron

Lately, whenever I run setup (x86), my /var/log/setup.log.full contains:

 2017/12/20 03:07:44 running: C:\cygwin\bin\bash.exe --norc --noprofile 
"/etc/postinstall/cygwin-doc.sh"
 mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start 
Menu/Programs/C:/cygwin/User Guide (PDF).lnk" failed; does the target 
directory exist?
 mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start 
Menu/Programs/C:/cygwin/User Guide (HTML).lnk" failed; does the target 
directory exist?
 mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start 
Menu/Programs/C:/cygwin/API (PDF).lnk" failed; does the target directory 
exist?
 mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start 
Menu/Programs/C:/cygwin/API (HTML).lnk" failed; does the target 
directory exist?
 mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start 
Menu/Programs/C:/cygwin/Home Page.lnk" failed; does the target directory 
exist?
 mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start 
Menu/Programs/C:/cygwin/FAQ.lnk" failed; does the target directory 
exist?

 2017/12/20 03:07:45 abnormal exit: exit code=3

Please notice the extra C:/ in front of the target link name.

So I have added a line "set -x" at the top in  
postinstall/cygwin-doc.sh, and the relevant section becomes


 + read target name desc
 + '[' -r ']'
 + /bin/mkshortcut -A -P -n 'Cygwin/User Guide (PDF)' -d 'Cygwin User 
Guide PDF' -- /usr/share/doc/cygwin-doc/cygwin-ug-net.pdf
 mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start 
Menu/Programs/C:/cygwin/User Guide (PDF).lnk" failed; does the target 
directory exist?

 + read target name desc
 + '[' -r ']'
 + /bin/mkshortcut -A -P -n 'Cygwin/User Guide (HTML)' -d 'Cygwin User 
Guide HTML' -- /usr/share/doc/cygwin-doc/html/cygwin-ug-net/index.html
 mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start 
Menu/Programs/C:/cygwin/User Guide (HTML).lnk" failed; does the target 
directory exist?

 + read target name desc
 + '[' -r ']'
 + /bin/mkshortcut -A -P -n 'Cygwin/API (PDF)' -d 'Cygwin API Reference 
PDF' -- /usr/share/doc/cygwin-doc/cygwin-api.pdf
 mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start 
Menu/Programs/C:/cygwin/API (PDF).lnk" failed; does the target directory 
exist?

 + read target name desc
 + '[' -r ']'
 + /bin/mkshortcut -A -P -n 'Cygwin/API (HTML)' -d 'Cygwin API Reference 
HTML' -- /usr/share/doc/cygwin-doc/html/cygwin-api/index.html
 mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start 
Menu/Programs/C:/cygwin/API (HTML).lnk" failed; does the target 
directory exist?

 + read target name desc
 + read target name desc
 + /bin/mkshortcut -A -P -n 'Cygwin/Home Page' -d 'Cygwin Home Page 
Link' -a https://cygwin.com/index.html -- /bin/cygstart
 mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start 
Menu/Programs/C:/cygwin/Home Page.lnk" failed; does the target directory 
exist?

 + read target name desc
 + /bin/mkshortcut -A -P -n Cygwin/FAQ -d 'Cygwin Frequently Asked 
Questions Link' -a https://cygwin.com/faq.html -- /bin/cygstart
 mkshortcut: Saving "/cygdrive/c/ProgramData/Microsoft/Windows/Start 
Menu/Programs/C:/cygwin/FAQ.lnk" failed; does the target directory 
exist?



(by the way -- this reveals another bug too: The script says "[ -r $t ] 
&& $mks ..." where I am sure it should be "[ -r $target ] && $mks ...")
(and again btw, I am not sure bash should count "[ -r ]" as a true 
statement)




The script issues mkshortcut commands with sane arguments, no extra 
"C:/" in there.


So I just tried to run the script from an elevated-privilege mintty 
shell:


 $ CYGWINFORALL=-A /bin/bash /etc/postinstall/cygwin-doc.sh

But then it does NOT fail, and the shortcuts do get installed -- they 
were not present before.



I am still running the 32-bit cygwin, though on a 64-bit windows 10 Home 
edition, version 1709, OS build 16299.125.


Any ideas about what could be the problem?

-Enrique

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



cygrunsrv: trailing command line arguyments not allowed

2024-04-20 Thread enrique--- via Cygwin

Hello,

I am trying to install a service manually in an attempt to understand 
why cron-config did not work for me.


So, I did this:


$ net stop cron
Tjenesten Cron daemon stopper .
Tjenesten Cron daemon ble stoppet.

$ cygrunsrv -R cron

$ cygrunsrv -I -p /usr/sbin/cron.exe -a -n
cygrunsrv: Trailing commandline arguments not allowed
Try `cygrunsrv --help' for more information.


I also tried a number of other combinations and orders of arguments, all 
with similar results.


What am I doing wrong?

Thanks

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: cygrunsrv: trailing command line arguyments not allowed

2024-04-20 Thread enrique--- via Cygwin

Den 2024-04-20 14:12, skrev enrique--- via Cygwin:

$ cygrunsrv -I -p /usr/sbin/cron.exe -a -n
cygrunsrv: Trailing commandline arguments not allowed
Try `cygrunsrv --help' for more information.

[snip]

What am I doing wrong?


I found it: Missing service name after "-I".

-Thanks

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


include "/usr/local/lib/python3.8" in rebaseall?

2021-07-07 Thread enrique--- via Cygwin

Hello!

When I "pip install" python modules for which there are no cygwin 
packages, *.dll files are installed below 
/usr/local/lib/python3.8/site-packages/.
Since rebaseall does not automatically rebase files under this location, 
I had fork failures.


The following patch solved it for me:

$ diff -u old-rebaseall rebaseall
--- old-rebaseall   2021-07-08 04:06:16.843238400 +0200
+++ rebaseall   2021-07-08 04:08:20.586260500 +0200
@@ -219,7 +219,7 @@
 # package manager, such as CPAN and RubyGems.
 for d in /usr/lib/perl5/site_perl /usr/lib/py*/site-packages \
  /usr/lib/php /usr/lib/R/site-library /usr/lib/rub*/gems \
- /usr/lib/octave/site
+ /usr/lib/octave/site /usr/local/lib/python*/site-packages
 do
   if [ -d $d ]
   then

Thanks
-Enrique

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


lftp error SSL_connect: sslv3 alert unexpected message

2013-07-05 Thread Rafael Enrique Martinez Delgado
Hello everyone,

I have been trying to use lftp to connect sftp.am.gxsics.com but just
get the error SSL_connect: sslv3 alert unexpected message
when using cygwin built of lftp (which uses OpenSSL). I then found a
build that was done with GNUTLS with 4.3 version of lftp and this can
connect with no issues using the same script and so it seems to be
down to OpenSSL and the specific setup used by GXS which is kind of
old school with implicit ftps on port 6366. Below are the log and lftp
script.

I have tried it on Windows 7 32 bits as well as Windows 8 32 bits.
I ran cygcheck on windows 8 and got a blank file, but was able to run uname -a

CYGWIN_NT-6.2 RM-LAPTOP 1.7.20(0.266/5/3) 2013-06-07 11:11 i686 Cygwin

Thanks in advance.

set cmd:default-protocol ftps
set cmd:verify-host false
set cmd:verify-path false
set ftps:initial-prot P
set ftp:list-empty-ok true
set ftp:ssl-allow true
set ftp:ssl-auth SSL
set ftp:use-allo false
set ftp:use-fxp false
set net:idle 1
set net:max-retries 
set net:reconnect-interval-base 2
set net:reconnect-interval-max 4
set net:timeout 120
set ssl:check-hostname true
set ssl:verify-certificate false
open -d ftps://user:passw...@sftp.am.gxsics.com:6366
lcd /cygdrive/c/lftp
ls
cls
bye

 Resolving host address...
 1 address found: 204.90.130.188
 Connecting to sftp.am.gxsics.com (204.90.130.188) port 6366
 SSL_connect: sslv3 alert unexpected message
 Closing control socket
ls: Fatal error: SSL_connect: sslv3 alert unexpected message
 Connecting to sftp.am.gxsics.com (204.90.130.188) port 6366
 SSL_connect: sslv3 alert unexpected message
 Closing control socket
Fatal error: SSL_connect: sslv3 alert unexpected message

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple