Sponsored Content
Full Discussion: Cygwin permission problem
Top Forums UNIX for Advanced & Expert Users Cygwin permission problem Post 302458309 by achenle on Thursday 30th of September 2010 10:49:31 AM
Old 09-30-2010
Also, does the file "x" already exist? If so, what are its permissions, including ACLs?

It could also be a read-only file system. I'd think the error would be EROFS in that case, but since the OS isn't specified, maybe not.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

terminal type problem with cygwin on aix

hey, I use cygwin to connect to AIX 5.2 but when I open vi I get an error saying: ex: 0602-108 cygwin is not a recognized terminal type how can I fix that? I thought cygwin was tty vt100? (1 Reply)
Discussion started by: rein
1 Replies

2. UNIX for Dummies Questions & Answers

cygwin problem

Hi, I have install cygwin in my PC which is having Windows-XP. I am able to run c programm successfully using gcc compiler but when i am running c++ program it is giving the following error: $ gcc abc.cpp /cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cclwkyqD.o:abc.cpp:(.text+0xd): unde... (0 Replies)
Discussion started by: gauri_agr
0 Replies

3. UNIX for Dummies Questions & Answers

problem with cygwin

hi... i'm working on windows xp currently but i have to work on linux. the problem is there is no internet in linux OS so i decided to use cygwin which (i was told) can be used for unix based commands to an extent in windows.i have to write c-programs and i'm using emacs as editor and g++... (0 Replies)
Discussion started by: raya_g
0 Replies

4. UNIX for Dummies Questions & Answers

Cygwin installation problem

hihi, im new here. just start to use cygwin as unix-based in Windows XP. my installation of cygwin is not success, it has procedure entry_impure_ptr problem due with ash.exe, install_info.exe, and In-exe files. do anyone know why is that so? (3 Replies)
Discussion started by: Suraine
3 Replies

5. Shell Programming and Scripting

cygwin and remote find command problem

Sir, I want to get all the files in directory on a remote server which are dated newer than a specified file. I have ssh running and the command I am using is : for file_name in `ssh userid@IP find "/cygdrive/d/oracle/oradata/db/archive" -newer "1_44.DBF" -name '*.DBF' -type f -print | xargs -r... (2 Replies)
Discussion started by: nakod1
2 Replies

6. Shell Programming and Scripting

cygwin script problem windows

I'm using cygwin to make some scripts,but I have the following problem. If I create a simple script like this one: if echo "Error" exit 1 fi echo "`expr $1 + $2`" I obtain line 6: syntax error:unexpected end of file. If I create the same script with cat>filename.txt and execute it... (4 Replies)
Discussion started by: Max89
4 Replies

7. Windows & DOS: Issues & Discussions

Problem compiling C++ Code in Cygwin

Hello everyone. I just recently installed Cygwin and I am running it under Windows 7. My problem is that I cannot seem to compile any C++ code with g++. I've tried to compile C Code using gcc and that works just fine. But Whenever I try to compile some C++ code, g++ throws a whole bunch of... (6 Replies)
Discussion started by: Anlex
6 Replies

8. Shell Programming and Scripting

Cygwin vi XML file encoding problem

Hi, I have got a zip (binary) file transferred from MacOS (thus it has additional __MACOSX directory packed inside). On extracting this zip, there are few *.xml files available. When I opened this *.xml file in vim editor using Cygwin (on windows) the editor displayed in the bottom. I tried... (4 Replies)
Discussion started by: royalibrahim
4 Replies

9. UNIX for Advanced & Expert Users

Problem in cygwin

Hi All, I am using cygwin 2.697. When i was working with LAN its working fine. But when i am trying to working via ( Aventail Smart Tunnel), It close after 20 mins. But Exceed-10 is working fine, but it take more resource and its not freeware. so kindly help me in this regards. I have a... (1 Reply)
Discussion started by: rajamohan
1 Replies

10. UNIX for Dummies Questions & Answers

Cygwin setup old package problem.

Hi there, I am in need to compile an old project for cygwin, but it needs some old packages to compile. I tried to download the x86 setup.exe from cygwin web site. Then downloaded the old packages from various sites and put it in an empty directory I run the setup.exe file and install from local... (1 Reply)
Discussion started by: lucky7456969
1 Replies
ACL_SET(3)						   BSD Library Functions Manual 						ACL_SET(3)

NAME
acl_set_fd, acl_set_fd_np, acl_set_file, acl_set_link_np -- set an ACL for a file LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <sys/types.h> #include <sys/acl.h> int acl_set_fd(int fd, acl_t acl); int acl_set_fd_np(int fd, acl_t acl, acl_type_t type); int acl_set_file(const char *path_p, acl_type_t type, acl_t acl); int acl_set_link_np(const char *path_p, acl_type_t type, acl_t acl); DESCRIPTION
The acl_set_fd(), acl_set_fd_np(), acl_set_file(), and acl_set_link_np() each associate an ACL with an object referred to by fd or path_p. The acl_set_fd_np() and acl_set_link_np() functions are not POSIX.1e calls. The acl_set_fd() function allows only the setting of ACLs of type ACL_TYPE_EXTENDED where as acl_set_fd_np() allows the setting of ACLs of any type. The acl_set_link_np() function acts on a symlink rather than its target, if the target of the path is a symlink. In the case of a symlink, this function will return an error because ACLs are not currently supported on symlinks. Note that the implementation is not atomic, and so the target could change between the time it is checked as not being a symlink, and the time the ACL is set. RETURN VALUES
Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error. ERRORS
If any of the following conditions occur, these functions shall return -1 and set errno to the corresponding value: [EACCES] Search permission is denied for a component of the path prefix, or the object exists and the process does not have appro- priate access rights. [EBADF] The fd argument is not a valid file descriptor. [EINVAL] Argument acl does not point to a valid ACL for this object, or the ACL type specified in type is invalid for this object, or both. [ENAMETOOLONG] A component of a pathname exceeded 255 characters, or an entire path name exceeded 1023 characters. [ENOENT] The named object does not exist, or the path_p argument points to an empty string. [ENOMEM] Insufficient memory available to fulfill request. [ENOSPC] The directory or file system that would contain the new ACL cannot be extended, or the file system is out of file alloca- tion resources. [EOPNOTSUPP] The file system does not support ACL retrieval. [EROFS] This function requires modification of a file system which is currently read-only. SEE ALSO
acl(3), acl_delete(3), acl_get(3), acl_valid(3), posix1e(3) STANDARDS
POSIX.1e is described in IEEE POSIX.1e draft 17. AUTHORS
Michael Smith Robert N M Watson BSD
December 29, 2002 BSD
All times are GMT -4. The time now is 03:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy