search for: s_ixoth

Displaying 20 results from an estimated 39 matches for "s_ixoth".

Did you mean: s_iroth
2005 Apr 18
1
error msg using testparm
...]" Processing section "[printers]" Processing section "[homes]" Processing section "[more]" 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....
2016 Mar 06
1
Map hidden can only work if create mask includes octal 01 (S_IXOTH)
...9;m just using this for "classic" sharing, not AD/DC. I'm getting an error when I run testparm which I didn't with the previous version (or didn't notice). "Invalid combination of parameters for service public. Map hidden can only work if create mask includes octal 01 (S_IXOTH)." this section is: [public] path = /mnt/RAID/public read only = No create mask = 0660 force create mode = 0660 directory mask = 0771 guest only = Yes guest ok = Yes hide files = /Outlook/outlook/~*/ veto oplock files =...
2020 Sep 25
0
[RFC PATCH 01/19] tools/virtiofsd: add support for --socket-group
...* Unfortunately bind doesn't let you set the mask on the socket, - * 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(o...
2003 Feb 08
1
compare st_mode & 07777, or Aix dirs always differ
...if +#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_IRWXO) #ifndef _S_IFMT #define _S_IFMT 0170000 -- Roderick Schertler roderick@argon.org
2004 Sep 25
1
[LLVMdev] Code to be moved to the specific platform in lib/System?
...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 SystemUtils.cpp is specific to a platform. Shouldn't this code be moved to the specific platform in lib/System? Any su...
2001 Jun 18
2
Patch for changing expired passwords
...5:08 2001 *************** *** 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...
2014 Jun 12
2
[PATCH] fuse: UID 0 should override all permissions checks (RHBZ#1106548).
...? 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.st_uid ? statbuf.st_mode & S_IRUSR...
2009 Mar 05
1
[PATCH 4/5] COM32: add trivial stat() function
...atus, 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; +} /* stat */
1999 Jul 02
1
preexec: return code not used? (PR#18576)
T.D.Lee@durham.ac.uk wrote: > > > But we'd like to go one step further and have the return code from preexec > be used to continue or abort the connection being established. The script > above would be modified to generate this return code. > > Looking through the source code (smbd/service.c), it doesn't seem to check > the return code (calling smbrun to do the
2004 Feb 20
1
ocfs hung
...00000000000000000 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 next_del =...
2009 Mar 06
0
[PATCH 3/3] COM32/stat(): preset ret and move zeroing errno
...r = 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; /* Preserve errno */ }...
2010 Jun 21
0
would like more detail when /tmp directory is missing. patch for linux/syslinux.c
...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
...utable */ - if (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
...table */ - if (stat(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
...sure that "" == "/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,
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] Fix "test -x" as root on FreeBSD 8
...ax_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_FACCESSAT *...
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] Fix "test -x" as root on FreeBSD 8
...ax_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_FACCESSAT *...
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_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) ? 'x' : '-') : + putchar(S_ISDIR(st->st_mode) ? 't' : 'T'); + + if (S_ISCHR(st->st_mode) || S_ISBLK(st->st_mode)) { + rc = asprintf(&fmt," %%%dju %%%dju %%%dju %%%du,%%%du %%s", + max_nlinks, max_uid, max_gid, max_maj, max_min...