search for: s_isgid

Displaying 20 results from an estimated 34 matches for "s_isgid".

Did you mean: s_isdir
2007 Feb 16
13
Problem with Share Size
Hi all, I have a problem with samba : I can create files, but can't create directories. The server has many shares, on seperated disks. We consider two of them : one 2Tb share and one share with more than 7Tb. Samba configuration is good, and works on many other servers, and on this one except for the large share. Permissions are correctly setted up too. I can read/write files and
2006 Oct 31
0
6380036 zfs does not clear S_ISUID and S_ISGID bits on successful writes
Author: marks Repository: /hg/zfs-crypto/gate Revision: f89e0d54f3a2bec76fbda3e2097037a4bd3c6f21 Log message: 6380036 zfs does not clear S_ISUID and S_ISGID bits on successful writes 6388195 conflict of filesystem property of "aclinherit=secure" & ACE no_propagate 6389212 file_dac_search privilege is ineffective when traversing zfs mount point Files: update: usr/src/uts/common/fs/zfs/zfs_acl.c update: usr/src/uts/common/fs/zfs/zfs_vnop...
2004 Aug 17
0
[BUG] LTP:mkdir try to inherits S_ISGID failed
This bug has the same reproduce step as below. the dir2 has no S_ISGID set. see bug 131. >-----Original Message----- >From: ocfs2-devel-bounces@oss.oracle.com=20 >[mailto:ocfs2-devel-bounces@oss.oracle.com] On Behalf Of Ling, Xiaofeng >Sent: 2004=C4=EA8=D4=C218=C8=D5 9:45 >To: ocfs2-devel@oss.oracle.com >Subject: [Ocfs2-devel] [BUG] LTP:mkdir try to...
2003 Feb 08
1
compare st_mode & 07777, or Aix dirs always differ
...%s : %s\n", diff -r -X /home/roderick/.diff-exclude -u rsync-2.5.5/rsync.h rsync/rsync.h --- rsync-2.5.5/rsync.h Mon Mar 25 02:29:43 2002 +++ rsync/rsync.h Fri Feb 7 10:02:09 2003 @@ -488,9 +488,53 @@ #define STDERR_FILENO 2 #endif +#ifndef S_ISUID +#define S_ISUID 04000 +#endif +#ifndef S_ISGID +#define S_ISGID 02000 +#endif +#ifndef S_ISVTX +#define S_ISVTX 01000 +#endif +#ifndef S_IRWXU +#define S_IRWXU 00700 +#endif +#ifndef S_IRUSR +#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 +#ifnd...
2010 Feb 17
0
[PATCH 04/19] btrfs: replace inode uid,gid,mode initialization with helper function
...s/btrfs/inode.c index 4deb280..ae4f64c 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -4145,16 +4145,7 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans, if (ret != 0) goto fail; - inode->i_uid = current_fsuid(); - - if (dir && (dir->i_mode & S_ISGID)) { - inode->i_gid = dir->i_gid; - if (S_ISDIR(mode)) - mode |= S_ISGID; - } else - inode->i_gid = current_fsgid(); - - inode->i_mode = mode; + inode_init_owner(inode, dir, mode); inode->i_ino = objectid; inode_set_bytes(inode, 0); inode->i_mtime = inode->i_atime = i...
2015 Aug 01
2
unnecessary /proc requirement in 3.1.1
...program manually. I was at 3.0.9 and all was fine. Manual chroot only requires files dir, config and personal tmp. 3.1.1 now also want whole /proc only for /proc/self/fd/X instead just fd number. Whole /proc is serious security risk for me. Why? starce log lstat64("tt", {st_mode=S_IFDIR|S_ISGID|0755, st_size=4096, ...}) = 0 fstatat64(AT_FDCWD, "tt", {st_mode=S_IFDIR|S_ISGID|0755, st_size=4096, ...}, AT _SYMLINK_NOFOLLOW) = 0 openat(AT_FDCWD, "tt", O_RDONLY|O_NOCTTY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = 2 fstatat64(AT_FDCWD, "/proc/self/fd/2", 0x5bafe7f0, 0) = -1 ENO...
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
2003 Feb 19
0
FW: compare st_mode & 07777, or Aix dirs always differ
...~0. I did some research and found that ALLPERMS is not in POSIX-96 or POSIX-01. Therefore, I don't think it is wise to use it in rsync, unless one were to write a full-bore configure test, and define it if it is not present. The POSIX-01 description of chmod() says that it changes S_ISUID, S_ISGID, S_ISVTX, and the file permission bits. My feeling is that it would be ok to use a mask of those 3 macros with 0777; any implementation that doesn't make the file permission bits the low-order 9 bits with their usual definition is insane. Actually, I think the original definition (below),...
2004 Mar 05
2
Problem with --link-dest when syncing AIX to Linux
Hello, i'm using rsync 2.6.0 for daily-syncing some remote AIX 5.2 machine to a local linux (RH 7.3) with using the --link-dest option for saving space on incremental backups. Even if there are no changes on the AIX machine, all files are newly transferred on every new sync. My test scenario (actisi=remote aix machine, actisa=local linux machine): =====> Initial rsync [mma@actisa
2010 Oct 14
2
Dovecot chgrp actions on new files/folders
...ld be to delete the extraneous block. --- src/lib-storage/mailbox-list.c.orig 2010-09-14 11:03:18.000000000 -0400 +++ src/lib-storage/mailbox-list.c 2010-10-08 13:02:54.000000000 -0400 @@ -450,7 +450,7 @@ } if (S_ISDIR(st.st_mode) && (st.st_mode & S_ISGID) != 0) { - /* directory's GID is used automatically for new + /* directory is sgid, so GID is used automatically for new files */ *gid_r = (gid_t)-1; } else if ((st.st_mode & 0070)...
2013 Feb 12
1
Can't get working nsswitch, specifically "wbinfo -u"
...May it be, because of more than 1000 AD users we have? Sig. -------------- next part -------------- 15:19:55.446218 read(3, "/usr/local/samba/var/lib/winbind"..., 45) = 45 <0.000008> 15:19:55.446254 lstat("/usr/local/samba/var/lib/winbindd_privileged", {st_mode=S_IFDIR|S_ISGID|0750, st_size=4096, ...}) = 0 <0.000010> 15:19:55.446309 lstat("/usr/local/samba/var/lib/winbindd_privileged/pipe", {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0 <0.000009> 15:19:55.446361 socket(PF_FILE, SOCK_STREAM, 0) = 4 <0.000011> 15:19:55.446397 fcntl(4, F_GETFL)...
2002 Mar 12
2
Patch: --drop-suid Remove suid/sgid from target files
...rn int am_sender; extern int always_checksum; +extern int drop_suid; extern int cvs_exclude; @@ -714,6 +716,10 @@ #ifdef HAVE_STRUCT_STAT_ST_RDEV file->rdev = st.st_rdev; #endif + + if (am_sender && drop_suid && S_ISREG(st.st_mode)) { + file->mode &= ~(S_ISUID | S_ISGID); + } #if SUPPORT_LINKS if (S_ISLNK(st.st_mode)) { diff -r --unified rsync-2.5.4pre1-orig/options.c rsync-2.5.4pre1/options.c --- rsync-2.5.4pre1-orig/options.c Thu Feb 28 09:49:57 2002 +++ rsync-2.5.4pre1/options.c Tue Mar 12 22:01:45 2002 @@ -31,6 +31,7 @@ int preserve_uid = 0; int preserv...
2007 Jul 04
4
Dovecot shared mailbox folder problem
...just in case. stracing the situation results in: gettimeofday({1183560101, 339756}, {4294967176, 0}) = 0 read(0, "3 select \"Shared.testAccess\"\r\n", 3978) = 30 setsockopt(1, SOL_TCP, TCP_CORK, [1], 4) = 0 stat64("/mnt/mailcache/shared/.testAccess", {st_mode=S_IFDIR|S_ISGID|0770, st_size=4096, ...}) = 0 stat64("/mnt/mailcache/shared/.testAccess/cur", 0xbf8cb470) = -1 EACCES (Permission denied) write(2, "\1Estat(/mnt/mailcache/shared/.te"..., 72) = 72 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=837, ...}) = 0 write(1, "3...
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,
2002 Jun 21
1
small security-related rsync extension
...extern int priv_backups; X+ X+ #ifdef HAVE_CHMOD X+ static int strip_perm(char *fname) X+ { X+ struct stat buf; X+ if (link_stat(fname,&buf) != 0) { X+ rprintf(FERROR,"stat failed\n"); X+ return 0; X+ } X+ X+ if (S_ISREG(buf.st_mode) && (buf.st_mode & (S_ISUID | S_ISGID))) { X+ mode_t new_mode; X+ new_mode = buf.st_mode & 01777; X+ if (do_chmod(fname,new_mode) != 0) { X+ rprintf(FERROR,"chmod failed\n"); X+ return 0; X+ } X+ } X+ return 1; X+ } X+ #endif X X /* simple backup creates a backup with a suffix in the same directory */ X...
2004 Mar 17
1
setgid on directories
...o skip a particular file */ @@ -557,6 +558,11 @@ them. This is then fixed after the files are transferred */ if (!am_root && S_ISDIR(file->mode)) { file->mode |= S_IWUSR; /* user write */ + + if( setgid_dirs){ + file->mode |= S_ISGID; + } + /* XXX: Could this be causing a problem on SCO? Perhaps their * handling of permissions is strange? */ } --- options.c Tue Dec 30 13:16:25 2003 +++ ../rsync-2.6.0.gsa/options.c Thu Feb 12 12:22:21 2004 @@ -88,6 +88,7 @@ int igno...
1999 Oct 18
1
Problem with sticky bit and free space
Hello, I have two little problems with samba: 1st. Samba is not setting the sticky bit anymore !!! I have a share that look like this: [publico] comment = Arquivos publicos path = /home/publicos public = yes writable = yes force directory mode = 1777 create mask = 0664 With samba 1.9.x it was ok, the directories was being created with the correct permission (drwxrwxrwt), but since I
2010 Nov 10
3
Occasional fchown errors?
Hi: I get the occasional error below. Is there something I don't have configured correctly? Or should I just ignore this? It is not always this file, sometimes it is the cache.lock file or the log.newlock file. I have a mail client running on my computer and my phone at the same time, could that have something to do with it? Nov 10 08:32:59 rabbitbrush dovecot: IMAP(bob):
2000 Aug 18
0
[PATCH] Support symlinks in scp of openssh 2
..._IFMT) { + case S_IFLNK: + /* readlink later */ + break; case S_IFREG: + if (fd < 0 && (fd = open(name, O_RDONLY, 0)) < 0) + goto syserr; break; case S_IFDIR: @@ -586,6 +606,7 @@ syserr: run_err("%s: %s", name, strerr } #define FILEMODEMASK (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO) - (void) sprintf(buf, "C%04o %lu %s\n", - (unsigned int) (stb.st_mode & FILEMODEMASK), + (void) sprintf(buf, "%c%04o %lu %s\n", + ((stb.st_mode & S_IFMT) == S_IFLNK) ? 'L' : 'C', + (unsigned int) (stb.st...
2009 May 29
1
[PATCH v2] klibc-utils: add simple ls
...S_ISUID) ? + putchar(STAT_ISSET(st->st_mode, 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...