Displaying 20 results from an estimated 38 matches for "s_ixgrp".
Did you mean:
s_irgrp
2005 Apr 18
1
error msg using testparm
...uot;
Processing section "[mnt]"
Loaded services file OK.
Invalid combination of parameters for service orb. Map hidden can only
work if create mask includes octal 01 (S_IXOTH).
Invalid combination of parameters for service orb. Map system can only
work if create mask includes octal 010 (S_IXGRP).
Invalid combination of parameters for service data. Map hidden can only
work if create mask includes octal 01 (S_IXOTH).
Invalid combination of parameters for service data. Map system can only
work if create mask includes octal 010 (S_IXGRP).
Invalid combination of parameters for service usb-st...
2003 Feb 08
1
compare st_mode & 07777, or Aix dirs always differ
...define S_IRUSR 00400
+#endif
#ifndef S_IWUSR
-#define S_IWUSR 0200
+#define S_IWUSR 00200
+#endif
+#ifndef S_IXUSR
+#define S_IXUSR 00100
+#endif
+#ifndef S_IRWXG
+#define S_IRWXG 00070
+#endif
+#ifndef S_IRGRP
+#define S_IRGRP 00040
+#endif
+#ifndef S_IWGRP
+#define S_IWGRP 00020
+#endif
+#ifndef S_IXGRP
+#define S_IXGRP 00010
+#endif
+#ifndef S_IRWXO
+#define S_IRWXO 00007
+#endif
+#ifndef S_IROTH
+#define S_IROTH 00004
+#endif
+#ifndef S_IWOTH
+#define S_IWOTH 00002
+#endif
+#ifndef S_IXOTH
+#define S_IXOTH 00001
#endif
+
+#define CHMOD_BITS (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_I...
2004 Sep 25
1
[LLVMdev] Code to be moved to the specific platform in lib/System?
...ils.cpp:44: error: (Each
undeclared identifier is reported only once for each function it appears
in.)
C:/MinGW/msys/local/src/llvm/lib/Support/SystemUtils.cpp:46: error: `getgid'
undeclared (first use this function)
C:/MinGW/msys/local/src/llvm/lib/Support/SystemUtils.cpp:47: error:
`S_IXGRP'
undeclared (first use this function)
C:/MinGW/msys/local/src/llvm/lib/Support/SystemUtils.cpp:49: error:
`S_IXOTH'
undeclared (first use this function)
--------------------------
On mingw the these functions or values aren't declared. However, to me it
seems that the code in S...
2001 Jun 18
2
Patch for changing expired passwords
...*********
*** 68,83 ****
shell = (pw->pw_shell[0] == '\0') ? _PATH_BSHELL : pw->pw_shell;
/* deny if shell does not exists or is not executable */
! if (stat(shell, &st) != 0)
return 0;
! if (!((st.st_mode & S_IFREG) && (st.st_mode & (S_IXOTH|S_IXUSR|S_IXGRP))))
return 0;
/* Return false if user is listed in DenyUsers */
if (options.num_deny_users > 0) {
for (i = 0; i < options.num_deny_users; i++)
! if (match_pattern(pw->pw_name, options.deny_users[i]))
return 0;
}
/* Return false if AllowUsers isn't empty...
2014 Jun 12
2
[PATCH] fuse: UID 0 should override all permissions checks (RHBZ#1106548).
...: fuse->gid == statbuf.st_gid ? statbuf.st_mode & S_IWGRP
- : statbuf.st_mode & S_IWOTH);
- if (mask & X_OK)
- ok = ok &&
- ( fuse->uid == statbuf.st_uid ? statbuf.st_mode & S_IXUSR
- : fuse->gid == statbuf.st_gid ? statbuf.st_mode & S_IXGRP
- : statbuf.st_mode & S_IXOTH);
+ /* Root user should be able to access everything, so only bother
+ * with these fine-grained tests for non-root. (RHBZ#1106548).
+ */
+ if (fuse->uid != 0) {
+ if (mask & R_OK)
+ ok = ok &&
+ ( fuse->uid == statbuf...
2009 Mar 05
1
[PATCH 4/5] COM32: add trivial stat() function
...buf)
+{
+ int fd, status, ret;
+ DIR *d;
+ mode_t st_mode;
+
+ fd = open(pathname, O_RDONLY);
+ if (fd != -1){
+ status = fstat(fd, buf);
+ close(fd);
+ ret = 0;
+ } else {
+ if ((errno == 0) || (errno == ENOENT)) {
+ errno = 0;
+ st_mode = (S_IFDIR | S_IRUSR | S_IXUSR);
+ /* | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)
+ */
+ d = opendir(pathname);
+ if (d != NULL) {
+ buf->st_size = 0;
+ buf->st_mode = st_mode;
+ closedir(d);
+ ret = 0;
+ } else {
+ ret = -1; /* Preserve errno */
+ }
+ } else {
+ ret = -1; /* Preserve errno */
+ }
+ }
+ return ret;
+} /* s...
2008 Mar 25
3
rsync errors
Hi
I am running the command
/usr/bin/rsync -avO /var/lib/mysql sms@hostaa:/var/lib/ >
/tmp/rsync-${TIMESTAMP}.log 2>&1
I am getting the below error in the log file
mysql/
rsync: failed to set permissions on "/var/lib/mysql": Operation not
permitted (1)
rsync: failed to open "/var/lib/mysql/ib_logfile0", continuing: Permission
denied (13)
mysql/ib_logfile0
rsync:
2004 Feb 20
1
ocfs hung
...00000000000000000000000000000000
seq_num = 0
local_ext = false
granularity = 0
filename = prod
filename_len = 4
file_size = 131072
alloc_size = 131072
attribs = OCFS_ATTRIB_DIRECTORY
prot_bits = S_IRUSR S_IWUSR S_IXUSR S_IRGRP S_IXGRP S_IROTH
S_IXOTH
uid = 510
gid = 500
create_time = Wed Jan 14 11:29:16 2004
modify_time = Wed Jan 14 11:29:16 2004
dir_node_ptr = 16179200
this_sector = 16179712
last_ext_ptr = 0
sync_flags = OCFS_SYNC_FLAG_VALID
link_cnt = 0...
2009 Mar 06
0
[PATCH 3/3] COM32/stat(): preset ret and move zeroing errno
...(fd, buf);
+ /* terr = errno; */ /* FIXME:should fstat()'s error be
+ preserved over close()'s error? */
close(fd);
+ /* errno = terr; */
ret = 0;
} else {
if ((errno == 0) || (errno == ENOENT)) {
- errno = 0;
st_mode = (S_IFDIR | S_IRUSR | S_IXUSR);
/* | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)
- */
+ */ /* FIXME: Should these modes be included? */
d = opendir(pathname);
if (d != NULL) {
+ errno = 0; /* No real error occurred */
buf->st_size = 0;
buf->st_mode = st_mode;
closedir(d);
ret = 0;
- } else {
- ret = -1; /* Pre...
2010 Jun 21
0
would like more detail when /tmp directory is missing. patch for linux/syslinux.c
...argc, char *argv[])
Make a temp dir and pass all the gunky options to mount. */
if (chdir(_PATH_TMP)) {
- perror(program);
+ fprintf(stderr, "%s: Cannot access the %s directory.\n",
+ program, _PATH_TMP);
exit(1);
}
#define TMP_MODE (S_IXUSR|S_IWUSR|S_IXGRP|S_IWGRP|S_IWOTH|S_IXOTH|S_ISVTX)
2000 Mar 31
0
[PATCH] empty shell in /etc/passwd
...stat(pw->pw_shell, &st) != 0)
+ /* deny if shell is not executable, empty shell defaults to /bin/sh */
+ shell = pw->pw_shell[0] ? _PATH_BSHELL : pw->pw_shell;
+ if (stat(shell, &st) != 0)
return 0;
if (!((st.st_mode & S_IFREG) && (st.st_mode & (S_IXOTH|S_IXUSR|S_IXGRP))))
return 0;
2000 Mar 31
1
[PATCH] Correction empty shell-field patch
...tat(pw->pw_shell, &st) != 0)
+ /* deny if shell is not executable, empty shell defaults to /bin/sh */
+ shell = pw->pw_shell[0] ? pw->pw_shell : _PATH_BSHELL;
+ if (stat(shell, &st) != 0)
return 0;
if (!((st.st_mode & S_IFREG) && (st.st_mode & (S_IXOTH|S_IXUSR|S_IXGRP))))
return 0;
2000 Apr 15
0
patch in user validation code
...;" == "/bin/sh", as specified in passwd(5) */
+ if (!pw->pw_shell || !strlen(pw->pw_shell))
+ shell = _PATH_BSHELL;
+ else
+ shell = pw->pw_shell;
+ if (stat(shell, &st) != 0)
return 0;
if (!((st.st_mode & S_IFREG) && (st.st_mode & (S_IXOTH|S_IXUSR|S_IXGRP))))
return 0;
--
vsync
http://quadium.net/
Orjner.
2007 Apr 18
1
Linux Equivalent of SetFilePerm() api
Hi everyone,
We are trying to port our own windows application to SUSE linux.Our
application uses SetFilePerm() api defined in commondll.dll.We would like
to know whether there is a linux equivalent of windows commondll.dll in
wine...
If not then what could be the possible alternative to make this api
function exactly as it does in windows.
Waiting for an early reply,
Thanks and Regards,
2005 Jul 29
1
Samba permissions
I am working on my permissions and something does not quite make sense
to me. Here is what I have set.
/DIR (Unix permissions are 3777)
Then in samba I have the following
[dir]
path = /DIR
read only = no
valid users @teach @student
create mask 3660
directory mask 3770
Then from a windows workstation, I create a new directory inside 'dir',
and call it 'teach'.
The
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] Fix "test -x" as root on FreeBSD 8
...nline intmax_t getn(const char *s)
{
return atomax10(s);
@@ -493,8 +501,20 @@ equalf (const char *f1, const char *f2)
}
#ifdef HAVE_FACCESSAT
+static int has_exec_bit_set(const char *path)
+{
+ struct stat64 st;
+
+ if (stat64(path, &st))
+ return 0;
+ return st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH);
+}
+
static int test_file_access(const char *path, int mode)
{
+ if (faccessat_confused_about_superuser() &&
+ mode == X_OK && geteuid() == 0 && !has_exec_bit_set(path))
+ return 0;
return !faccessat(AT_FDCWD, path, mode, AT_EACCESS);
}
#else /* HAVE_F...
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] Fix "test -x" as root on FreeBSD 8
...nline intmax_t getn(const char *s)
{
return atomax10(s);
@@ -493,8 +501,20 @@ equalf (const char *f1, const char *f2)
}
#ifdef HAVE_FACCESSAT
+static int has_exec_bit_set(const char *path)
+{
+ struct stat64 st;
+
+ if (stat64(path, &st))
+ return 0;
+ return st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH);
+}
+
static int test_file_access(const char *path, int mode)
{
+ if (faccessat_confused_about_superuser() &&
+ mode == X_OK && geteuid() == 0 && !has_exec_bit_set(path))
+ return 0;
return !faccessat(AT_FDCWD, path, mode, AT_EACCESS);
}
#else /* HAVE_F...
2020 Sep 25
0
[RFC PATCH 01/19] tools/virtiofsd: add support for --socket-group
...- * so set umask to 077 and restore it later.
+ * so set umask appropriately and restore it later.
*/
- old_umask = umask(0077);
+ if (se->vu_socket_group) {
+ old_umask = umask(S_IROTH | S_IWOTH | S_IXOTH);
+ } else {
+ old_umask = umask(S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH);
+ }
if (bind(listen_sock, (struct sockaddr *)&un, addr_len) == -1) {
fuse_log(FUSE_LOG_ERR, "vhost socket bind: %m\n");
close(listen_sock);
umask(old_umask);
return -1;
}
+ if (se->vu_socket_group)...
2003 Jan 07
2
Test for locked account in auth.c (bug #442).
Hi Damien,
I noticed you merged a couple of ifdefs in the fix for bug #442. The
cvs comment says "Fix Bug #442 for PAM case". The code is now roughly:
#if !defined(USE_PAM) && defined(HAVE_SHADOW_H) && \
!defined(DISABLE_SHADOW) && defined(HAS_SHADOW_EXPIRE)
spw = getspnam(pw->pw_name);
passwd = spw->sp_pwdp;
#else
passwd =
2009 May 29
1
[PATCH v2] klibc-utils: add simple ls
...S_IXUSR) ? 'x' : '-') :
+ putchar('S');
+
+ putchar(STAT_ISSET(st->st_mode, S_IRGRP) ? 'r' : '-');
+ putchar(STAT_ISSET(st->st_mode, S_IWGRP) ? 'w' : '-');
+
+ !STAT_ISSET(st->st_mode, S_ISGID) ?
+ putchar(STAT_ISSET(st->st_mode, S_IXGRP) ? 'x' : '-') :
+ putchar('S');
+
+ putchar(STAT_ISSET(st->st_mode, S_IROTH) ? 'r' : '-');
+ putchar(STAT_ISSET(st->st_mode, S_IWOTH) ? 'w' : '-');
+
+ !STAT_ISSET(st->st_mode, S_ISVTX) ?
+ putchar(STAT_ISSET(st->st_mode, S_IXOTH...