Home
last modified time | relevance | path

Searched full:chown (Results 1 – 25 of 408) sorted by relevance

12345678910>>...17

/external/libcap/contrib/
Dpcaps4server85 chown $VERBOSE -R apache:apache /var/run/apache/
86 chown $VERBOSE -R apache:apache /etc/apache/
87 chown $VERBOSE -R apache:apache /var/log/apache/
88 chown $VERBOSE apache:apache /usr/sbin/httpd
95 chown $VERBOSE -R root:root /var/run/apache/
96 chown $VERBOSE -R root:root /etc/apache/
97 chown $VERBOSE -R root:root /var/log/apache/
98 chown $VERBOSE root:root /usr/sbin/httpd
120 chown $VERBOSE -R apache:apache /var/run/httpd/
121 chown $VERBOSE -R apache:apache /etc/httpd/
[all …]
/external/toybox/tests/
Dchown.test7 echo "$SHOWSKIP: chown (not root)"
12 # We chown between user "root" and the last user in /etc/passwd,
32 testing "initial" "chown root:root $F $OUT" "root root\n" "" ""
33 testing "usr:grp" "chown $USR:$GRP $F $OUT" "$USR $GRP\n" "" ""
34 testing "root" "chown root $F $OUT" "root $GRP\n" "" ""
36 testing ":grp" "chown root:root $F && chown :$GRP $F $OUT" \
38 testing ":" "chown $USR:$GRP $F && chown : $F $OUT" \
/external/ltp/testcases/kernel/syscalls/chown/
Dchown04.c26 * 1) chown(2) returns -1 and sets errno to EPERM if the effective user id
29 * 2) chown(2) returns -1 and sets errno to EACCES if search permission is
31 * 3) chown(2) returns -1 and sets errno to EFAULT if pathname points
33 * 4) chown(2) returns -1 and sets errno to ENAMETOOLONG if the pathname
35 * 5) chown(2) returns -1 and sets errno to ENOTDIR if the directory
37 * 6) chown(2) returns -1 and sets errno to ENOENT if the specified file
107 UID16_CHECK((user_id = geteuid()), "chown", cleanup) in main()
108 GID16_CHECK((group_id = getegid()), "chown", cleanup) in main()
114 TEST(CHOWN(cleanup, tc[i].pathname, user_id, group_id)); in main()
117 tst_resm(TFAIL, "chown succeeded unexpectedly"); in main()
[all …]
Dchown01.c42 * TEST TITLE : Basic test for chown(2)
62 * 1.) chown(2) returns...(See Description)
90 * This is a Phase I test for the chown(2) system call. It is intended
93 * chown(2).
142 TEST(CHOWN(cleanup, fname, uid, gid)); in main()
145 tst_resm(TFAIL | TTERRNO, "chown(%s, %d,%d) failed", in main()
148 tst_resm(TPASS, "chown(%s, %d,%d) returned %ld", in main()
167 UID16_CHECK((uid = geteuid()), "chown", cleanup) in setup()
168 GID16_CHECK((gid = getegid()), "chown", cleanup) in setup()
Dchown03.c24 * Verify that, chown(2) succeeds to change the group of a file specified
29 * Also, verify that chown() clears the setuid/setgid bits set on the file.
32 * chown(2) should return 0 and the ownership set on the file should match
114 UID16_CHECK((user_id = geteuid()), "chown", cleanup) in main()
115 GID16_CHECK((group_id = getegid()), "chown", cleanup) in main()
117 TEST(CHOWN(cleanup, TESTFILE, -1, group_id)); in main()
120 tst_resm(TFAIL | TTERRNO, "chown(%s, ..) failed", in main()
143 tst_resm(TPASS, "chown(%s, ..) was successful", in main()
Dchown02.c24 * Verify that, when chown(2) invoked by super-user to change the owner and
31 * chown(2) should return 0 and the ownership set on the file should match
141 * Call chown(2) with different user id and in main()
144 TEST(CHOWN(cleanup, file_name, user_id, group_id)); in main()
148 "chown(%s, ..) failed", file_name); in main()
176 * chown(). in main()
194 "chown(%s, ..) succeeded", in main()
229 * setup1() - Setup function for chown(2) to verify setuid/setgid bits
251 * setup2() - Setup function for chown(2) to verify setgid bit set
Dchown05.c24 * Verify that, chown(2) succeeds to change the owner and group of a file
29 * chown(2) should return 0 and the ownership set on the file should match
123 TEST(CHOWN(cleanup, TESTFILE, user_id, group_id)); in main()
126 tst_resm(TFAIL | TTERRNO, "chown failed"); in main()
143 tst_resm(TPASS, "chown succeeded"); in main()
/external/toybox/toys/posix/
Dchgrp.c5 * See http://opengroup.org/onlinepubs/9699919799/utilities/chown.html
9 USE_CHOWN(OLDTOY(chown, chgrp, TOYFLAG_BIN))
15 usage: chgrp/chown [-RHLP] [-fvh] group file...
27 config CHOWN
28 bool "chown"
81 // Distinguish chown from chgrp in chgrp_main()
/external/autotest/client/site_tests/platform_CryptohomeBadPerms/
Dplatform_CryptohomeBadPerms.py42 os.chown(path, 0, 0)
49 os.chown(path, 1, 1)
63 os.chown(parent_path, 1, 1)
67 os.chown(parent_path, 0, 0)
79 os.chown(parent_path, 0, 0)
/external/bcc/tools/
Dcapable_example.txt15 22:11:23 0 7006 chown 4 CAP_FSETID 1
16 22:11:23 0 7006 chown 4 CAP_FSETID 1
25 22:11:24 0 7029 chown 4 CAP_FSETID 1
26 22:11:24 0 7029 chown 4 CAP_FSETID 1
Dexecsnoop_example.txt37 chown 9664 0 /bin/chown nobody:nobody ./main
41 chown 9668 0 /bin/chown nobody:nobody ./main
/external/perfetto/infra/git_mirror_bot/
Dstartup-script.sh20 chown gitbot.gitbot /home/gitbot
43 chown gitbot /home/gitbot/deploy_key
47 chown gitbot /home/gitbot/mirror_aosp_to_ghub_repo.py
/external/linux-kselftest/tools/testing/selftests/capabilities/
Dtest_execve.c238 if (chown("validate_cap_suidroot", 0, -1) != 0) in do_tests()
239 ksft_exit_fail_msg("chown - %s\n", strerror(errno)); in do_tests()
245 if (chown("validate_cap_suidnonroot", uid + 1, -1) != 0) in do_tests()
246 ksft_exit_fail_msg("chown - %s\n", strerror(errno)); in do_tests()
252 if (chown("validate_cap_sgidroot", -1, 0) != 0) in do_tests()
253 ksft_exit_fail_msg("chown - %s\n", strerror(errno)); in do_tests()
259 if (chown("validate_cap_sgidnonroot", -1, gid + 1) != 0) in do_tests()
260 ksft_exit_fail_msg("chown - %s\n", strerror(errno)); in do_tests()
/external/openssh/
Dsshpty.c99 if (chown(tty, (uid_t) 0, (gid_t) 0) < 0) in pty_release()
100 error("chown %.100s 0 0 failed: %.100s", tty, strerror(errno)); in pty_release()
226 if (chown(tty, pw->pw_uid, gid) < 0) { in pty_setowner()
229 debug("chown(%.100s, %u, %u) failed: %.100s", in pty_setowner()
233 fatal("chown(%.100s, %u, %u) failed: %.100s", in pty_setowner()
/external/python/cpython2/Lib/test/
Dtest_posix.py304 """Common code for chown, fchown and lchown tests."""
312 # test a successful chown call
322 # large unsigned values. (chown lets you use any
342 # HP-UX and Solaris can allow a non-root user to chown() to root
344 raise unittest.SkipTest("Skipping because of non-standard chown() "
347 # non-root cannot chown to root, raises OSError
362 @unittest.skipUnless(hasattr(posix, 'chown'), "test needs os.chown()")
366 self.assertRaises(OSError, posix.chown, test_support.TESTFN, -1, -1)
370 self._test_all_chown_common(posix.chown, test_support.TESTFN,
/external/autotest/client/site_tests/platform_TLSDate/
Dplatform_TLSDate.py30 os.chown(self._testdir, self._tlsdate_uid, -1)
32 os.chown(self._test_obj.srcdir + '/time.sh', self._tlsdate_uid, -1)
40 os.chown(fake_tlsdate, self._tlsdate_uid, -1)
/external/strace/linux/aarch64/
Dsyscallent.h23 [1029] = { 3, TF, SEN(chown), "chown" },
26 [1032] = { 3, TF, SEN(chown), "lchown" },
/external/libcxx/utils/docker/scripts/
Drun_buildbot.sh26 chown buildbot:buildbot $BOT_DIR
50 chown -R buildbot:buildbot $BOT_DIR
/external/skqp/docker/skia-release/
DDockerfile16 ADD --chown=skia:skia https://storage.googleapis.com/swiftshader-binaries/OpenGL_ES/Latest/Linux/li…
17 ADD --chown=skia:skia https://storage.googleapis.com/swiftshader-binaries/OpenGL_ES/Latest/Linux/l…
/external/skia/docker/skia-release/
DDockerfile16 ADD --chown=skia:skia https://storage.googleapis.com/swiftshader-binaries/OpenGL_ES/Latest/Linux/li…
17 ADD --chown=skia:skia https://storage.googleapis.com/swiftshader-binaries/OpenGL_ES/Latest/Linux/l…
/external/curl/docs/cmdline-opts/
Dquote.d35 .IP "chown user file"
36 The chown command sets the owner of the file named by the file operand to the
/external/minijail/
Dsystem_unittest.cc272 // Passing -1 for user ID/group ID tells chown to make no changes. in TEST()
299 // Passing -1 for user ID/group ID tells chown to make no changes. in TEST()
332 // Passing -1 for user ID/group ID tells chown to make no changes. in TEST()
345 // Passing -1 for user ID/group ID tells chown to make no changes. in TEST()
358 // Passing -1 for user ID/group ID tells chown to make no changes. in TEST()
/external/autotest/client/tests/sysbench/
Dsysbench.py66 os.chown(data, self.dbuid, 0)
70 os.chown(self.debugdir, self.dbuid, 0)
111 os.chown(data, self.dbuid, 0)
/external/curl/docs/libcurl/opts/
DCURLOPT_QUOTE.354 .IP "chown user file"
55 The chown command sets the owner of the file named by the file operand to the
/external/python/cpython3/Lib/test/
Dtest_shutil.py1316 @unittest.skipUnless(hasattr(os, 'chown'), 'requires os.chown')
1322 write_file(filename, 'testing chown function')
1325 shutil.chown(filename)
1328 shutil.chown(filename, user='non-existing username')
1331 shutil.chown(filename, group='non-existing groupname')
1334 shutil.chown(filename, b'spam')
1337 shutil.chown(filename, 3.14)
1349 shutil.chown(filename, uid, gid)
1351 shutil.chown(filename, uid)
1353 shutil.chown(filename, user=uid)
[all …]

12345678910>>...17