Displaying 20 results from an estimated 4475 matches for "chmod".
2010 Dec 15
1
rsync server: "incoming chmod" usage
Hello :-)
According to my reading of the rsyncd.conf man page, "incoming chmod"
accepts comma-separated "chmod" strings as defined by the chmod(1) man page
optionally prefixed by D or F to make them apply to directories or files.
The local chmod(1) man page does not mention strings. It refers to modes
which may be symbolic or octal/numeric. Accordingly I tri...
2006 Dec 15
2
BugReport: rsync fails it's own "regression" test "chmod-option"
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Recent versions of rsync have a "regression test" called
"chmod-option" that when run fails, this should be causing rsync to be
rejected as broken by all distros and sysadmins.
A bit of research show that no one has mentioned this test since it
was last worked on in late September, nor does it show up as a current
bug anywhere. The slightly amusing rea...
2002 Nov 18
2
Setting the File/Folder chmod bits - Wish List ?
...le to set the u-g-o bits in a Rsync ?
What I want to do is synce files from one machine to another (public web
machine) so that all the files are READ-ONLY and, of course, the sub
folders READ+EXECUTE-ONLY.
Can't find any command line options or rsync.conf settings.
Would be nice to have a --chmod-file=xxxx and a --chmod-folder=xxxx
option, and with the same type of function in the conf file.
Leigh
2019 Jul 16
2
Usage of chmod 400 in lld lit tests causes failures when run by root user
Hi,
There are 3 lld tests[1] that run the command `chmod 400` or `chmod u-w`
and then check that lld generates a permission denied error when trying to
write to the files. These tests fail when run as root,
because `chmod 400` is not enough to prevent root from writing to files.
Is there some other way we can tests this, or should we just not support
run...
2008 Dec 01
4
chmod for directories only
I want to change the permissions on directories, recursively to:
drwxr-xr-x
but keep the files within the directory tree as:
-rw-r--r--
But I can't find an option for chmod to only affect directories. I
suppose it won't hurt (in this case) to set the x for the files, but I
want some consistancy.
2013 Jul 14
1
There is an error in chmod(1)
There is an error in the chmod(1) man page.
tingo at kg-v2$ uname -a
FreeBSD kg-v2.kg4.no 8.3-STABLE FreeBSD 8.3-STABLE #6: Fri Apr 27 23:50:55 CEST 2012
root at kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64
tingo at kg-v2$ apropos ^sticky
sticky(7) - sticky text and append-only directories
tingo at kg-v2$...
2006 Jun 20
2
Capistrano, chmod, and revisions.log
...POSIX ACLs on ext3 to let the devs do their thing and make
sure that apache and mongrel have r, rx, and rwx where they need to
for their applications without playing a bunch of owner/group games
for the files. This is working out well, and I can happily tell the
devs to ignore any and all chmod recommendations littered throughout
the web references to capistrano, because they are completely
unnecessary
well, until capistrano itself does a chmod.
Buried in .../gems/capistrano-1.1.0/lib/capistrano/scm/base.rb is this:
def logging_commands(directory = nil)
log = &q...
2001 Sep 27
3
[PATCH] ssh-copy-id should do chmod go-w
...e file modes more
correctly.
Thanks,
Matthew
--- contrib/ssh-copy-id.orig Thu Sep 27 21:47:44 2001
+++ contrib/ssh-copy-id Thu Sep 27 21:47:52 2001
@@ -33,7 +33,7 @@
exit 1
fi
-{ eval "$GET_ID" ; } | ssh $1 "test -d .ssh || mkdir .ssh ; cat >>
.ssh/authori
zed_keys ; chmod g-w . .ssh .ssh/authorized_keys"
+{ eval "$GET_ID" ; } | ssh $1 "test -d .ssh || mkdir .ssh ; cat >>
.ssh/authori
zed_keys ; chmod go-w . .ssh .ssh/authorized_keys"
cat <<EOF
Now try logging into the machine, with "ssh '$1'", and check in:...
2014 Dec 31
0
[Bug 11027] New: Sticky bit not set when using --chmod=D+t alone, without --perms
https://bugzilla.samba.org/show_bug.cgi?id=11027
Bug ID: 11027
Summary: Sticky bit not set when using --chmod=D+t alone,
without --perms
Product: rsync
Version: 3.0.9
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5
Component: core
Assignee: wayned at samba.org
Rep...
2004 Oct 22
5
Default permissions of /home/user..
...getting any further help really..
When a new user is added using "adduser" on 5.x (havn't really checked
if it's the same under 4.x or not), the default homedir permission is 755
(drwxr-xr-x) which to me, looks a bit insecure? It's of course pretty easy
to solve it by a simple chmod, but yet, isn't there anyway to change the
default chmod value? Last time I asked about this, people told me to check
out the skel directory, but the only thing you can do in there is to change the
default chmod value of the files/directories _in_ the homedir, not the chmod
values of the actual...
2007 Jan 13
3
Permission denied by op
i am invoking op from a python proggy which does an op.system() of
op chmod 640 /usr/local/etc/tac_plus.conf
i get "Permission denied by op"
% ls -l /usr/local/etc/op.access
-r-------- 1 root wheel 149 Jan 13 07:41 /usr/local/etc/op.access
% cat /usr/local/etc/op.access
# 2007.01.13
#
#DEFAULT users=src
#
chown /usr/sbin/chown $* ; users=src
chmod /bin...
2009 Feb 06
2
--chmod for destination only
Is it possible to set the permissions on the destination side? As I
understand it, --chmod just pretends certain permissions are coming from
the sending side. I'd like to be able to set permissions to readonly in
the destination while coming from a --copy/link-dest which may more may
not have had it's permissions changed.
2008 Oct 08
4
Xenstore-chmod equivalent Kernel(XenBus) API
Which is the Kernel API (Xenbus API) that is available to do a similar action as "xenstore-chmod"??
Thx,
Venkat
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
2006 Sep 22
2
incoming chmod on daemon fails on subdirectories
...as daemon on Fedora core 4. Have the following in
the rsyncd.conf file...
[test]
path = /home/test/greenlight
# use chroot = true
max connections = 3
lock file = /var/lock/rsyncd/test.lock
uid = 503
gid = 503
auth users = test
incoming chmod = Dg=s,Dug=rwx,Do-rwx,Fug=rw,Fo-rwx
Uploading a tree from windows with about a dozen subdirectory levels
over an ssh tunnel with the following command line.
rsync -rczt --modify-window=1 --delete --delete-after --stats -v -v
--port 35001 "/cygdrive/c/Documents and Settings/dad/My
Documen...
2018 Feb 05
2
Unfortunate results from fake-super
...created as a mode-600 file, but the code
> later tweaks the permissions to match the symlink, which is (as you
> note) a bad thing.
>
> My first reaction is to change the code in set_stat_xattr()
> (in xattrs.c) from:
>
> if (fst.st_mode != mode)
> do_chmod(fname, mode);
>
> to:
>
> if (fst.st_mode != mode && !S_ISLNK(file->mode))
> do_chmod(fname, mode);
>
> ..wayne..
That's certainly an improvement; from the safety point of view, leaving
it as 0600 is a lot better than leaving it as 0777...
2006 Sep 30
1
DO NOT REPLY [Bug 4138] New: Incoming chmod can't override inherited directory setgid
https://bugzilla.samba.org/show_bug.cgi?id=4138
Summary: Incoming chmod can't override inherited directory setgid
Product: rsync
Version: 2.6.9
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedB...
2007 Apr 24
2
chmod sftp command and setgid/setuid bit
...using OpenSSH on a daily basis and I'm very pleased
with the work you've done.
I am contributing to some Open Source software hosted at Savannah
https://savannah.nongnu.org/projects/tsp
and we recently hit some sftp unexpected behavior:
https://savannah.gnu.org/support/?105838
when using chmod sftp client command
it appears that setuid / setgid bits are not handled on the server-side.
that when I
sftp> chmod 2775 afile
I would expect afile to show:
-rwxrwsr-x 1 openssh isgreat 0 2007-04-25 00:19 afile
but I get:
-rwxrwxr-x 1 openssh isgreat 0 2007-04-25 00:19 afile...
2009 Aug 19
2
replacing permissions on uploaded windows files
..." in their filenames. I'm trying to adjust the
permissions as well as user and group membership and i'd like the changes to
be sticky. On the tld i've set permissions of 2755 and am trying to batch
convert the files and subfolders in it. I've done this:
find tld -type f |xargs chmod 644 {} \;
find tld -type d |xargs chmod 755 {} \;
Both of these are failing due to the spaces and dashes. I've tried
enclosing those {} in quotes, no good. Has anyone done this with shell or
perhaps perl?
Thanks.
Dave.
2017 Dec 02
7
Apache and web content permissions
...to the apache user and group. To give you an example,
let's say I have a static website under /var/www/myserver on a CentOS
server running Apache. Then I would configure permissions for the web
content like this:
# chown -R apache:apache /var/www/myserver
# find /var/www/myserver -type d -exec chmod 0750 {} \;
# find /var/www/myserver -type f -exec chmod 0640 {} \;
Some time ago a fellow sysadmin (Remi Collet on the fr.centos.org forum)
pointed out that this is malpractice in terms of security, and that the
stuff under /var/www should *not* be owned by the user/group running the
webserver. Wh...
2011 May 06
6
Rooting FreeBSD , Privilege Escalation using Jails (Pétur)
I read this (http://www.petur.eu/blog/?p=459) blog post today. It's
about that a remote user with root privilegs to a FreeBSD jail & user
privileges to the jails host machine can obtain root privileges on the
host machine.
Can someone confirm if this bugg/exploit works?