Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
12-28-2019, 11:03 AM
#1
Member
Registered: Feb 2013
Posts: 58
Rep:
file and directory priviliges
Hi forum,
I would like to have a directory to writeable through samba share. Its name is "Upload". But I don't get it to be writeable for other users at all:
Code:
root@xxxx:/DATA/mfs/ftproot# ll
total 1856
drwxrwx--- 1 root plugdev 4096 Oct 28 2017 ./
drwxrwx--- 1 root plugdev 0 Apr 1 2012 ../
-rwxrwx--- 1 root plugdev 1023525 May 7 2012 Flyer_v2.pdf*
drwxrwx--- 1 root plugdev 16384 May 17 2019 Upload/
root@xxxx:/DATA/mfs/ftproot# chmod -v 0777 Upload
mode of 'Upload' changed from 0770 (rwxrwx---) to 0777 (rwxrwxrwx)
root@xxxx:/DATA/mfs/ftproot# ll
total 1856
drwxrwx--- 1 root plugdev 4096 Oct 28 2017 ./
drwxrwx--- 1 root plugdev 0 Apr 1 2012 ../
-rwxrwx--- 1 root plugdev 1023525 May 7 2012 Flyer_v2.pdf*
drwxrwx--- 1 root plugdev 16384 May 17 2019 Upload/
Why do the permissions for "Upload" not get changed according to [ll], which is an alias for [ls -l] even though the
chmod command tells me so?
DATA is an NTFS harddisk mounted through fstab
Code:
UUID=20D0B80DD0B7E6E6 /DATA ntfs defaults,umask=007,gid=46 0 0
12-28-2019, 11:09 AM
#2
Senior Member
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
You can't change NTFS permissions themselves with Linux as far as I know, because NTFS permissions are not compatible with Unix permissions. I think you would need to use Windows itself to actually change NTFS permissions themselves.
You might be able to do something similar with fstab, but it would be limited.
12-28-2019, 12:19 PM
#3
Senior Member
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252
deleted
Last edited by sevendogsbsd; 01-02-2020 at 10:51 AM .
01-02-2020, 10:45 AM
#4
Member
Registered: Feb 2013
Posts: 58
Original Poster
Rep:
Hi again,
this one seems to have the same reason. It runs in another corner of the same NTFS harddisk.
Code:
user@xxxx:/DATA/Projects/LearnPython/wxGlade$ git init
error: chmod on /DATA/Projects/LearnPython/wxGlade/.git/config.lock failed: Operation not permitted
fatal: could not set 'core.filemode' to 'false'
Can
strace be of any help here? I don't know how to interpret its output:
Code:
user@xxxx:/DATA/Projects/LearnPython/wxGlade$ strace git init
execve("/usr/bin/git", ["git", "init"], 0x7ffc250a1438 /* 59 vars */) = 0
brk(NULL) = 0x564930b12000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=129945, ...}) = 0
mmap(NULL, 129945, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f64553d2000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpcre.so.3", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \25\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=464824, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f64553d0000
mmap(NULL, 2560264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f6454f59000
mprotect(0x7f6454fc9000, 2097152, PROT_NONE) = 0
mmap(0x7f64551c9000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x70000) = 0x7f64551c9000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\37\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=116960, ...}) = 0
mmap(NULL, 2212016, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f6454d3c000
mprotect(0x7f6454d58000, 2093056, PROT_NONE) = 0
mmap(0x7f6454f57000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b000) = 0x7f6454f57000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000b\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=144976, ...}) = 0
mmap(NULL, 2221184, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f6454b1d000
mprotect(0x7f6454b37000, 2093056, PROT_NONE) = 0
mmap(0x7f6454d36000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19000) = 0x7f6454d36000
mmap(0x7f6454d38000, 13440, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f6454d38000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\"\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=31680, ...}) = 0
mmap(NULL, 2128864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f6454915000
mprotect(0x7f645491c000, 2093056, PROT_NONE) = 0
mmap(0x7f6454b1b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f6454b1b000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\34\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2030544, ...}) = 0
mmap(NULL, 4131552, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f6454524000
mprotect(0x7f645470b000, 2097152, PROT_NONE) = 0
mmap(0x7f645490b000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e7000) = 0x7f645490b000
mmap(0x7f6454911000, 15072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f6454911000
close(3) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f64553ce000
arch_prctl(ARCH_SET_FS, 0x7f64553cf080) = 0
mprotect(0x7f645490b000, 16384, PROT_READ) = 0
mprotect(0x7f6454d36000, 4096, PROT_READ) = 0
mprotect(0x7f6454b1b000, 4096, PROT_READ) = 0
mprotect(0x7f6454f57000, 4096, PROT_READ) = 0
mprotect(0x7f64551c9000, 4096, PROT_READ) = 0
mprotect(0x564930022000, 12288, PROT_READ) = 0
mprotect(0x7f64553f2000, 4096, PROT_READ) = 0
munmap(0x7f64553d2000, 129945) = 0
set_tid_address(0x7f64553cf350) = 3290
set_robust_list(0x7f64553cf360, 24) = 0
rt_sigaction(SIGRTMIN, {sa_handler=0x7f6454b22cb0, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f6454b2f890}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {sa_handler=0x7f6454b22d50, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f6454b2f890}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
openat(AT_FDCWD, "/dev/null", O_RDWR) = 3
close(3) = 0
brk(NULL) = 0x564930b12000
brk(0x564930b33000) = 0x564930b33000
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=3339392, ...}) = 0
mmap(NULL, 3339392, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f64541f4000
close(3) = 0
rt_sigprocmask(SIG_UNBLOCK, [PIPE], NULL, 8) = 0
rt_sigaction(SIGPIPE, {sa_handler=SIG_DFL, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f6454562f20}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
getcwd("/DATA/Projects/LearnPython/wxGlade", 129) = 35
getcwd("/DATA/Projects/LearnPython/wxGlade", 129) = 35
lstat("/DATA", {st_mode=S_IFDIR|0770, st_size=20480, ...}) = 0
lstat("/DATA/Projects", {st_mode=S_IFDIR|0770, st_size=4096, ...}) = 0
lstat("/DATA/Projects/LearnPython", {st_mode=S_IFDIR|0770, st_size=4096, ...}) = 0
lstat("/DATA/Projects/LearnPython/wxGlade", {st_mode=S_IFDIR|0770, st_size=4096, ...}) = 0
access("/DATA/Projects/LearnPython/wxGlade", X_OK) = 0
getcwd("/DATA/Projects/LearnPython/wxGlade", 129) = 35
lstat("/DATA/Projects/LearnPython/wxGlade/.git", 0x7ffe2dcf8020) = -1 ENOENT (No such file or directory)
getcwd("/DATA/Projects/LearnPython/wxGlade", 129) = 35
lstat("/DATA/Projects/LearnPython/wxGlade/.git", 0x7ffe2dcf8060) = -1 ENOENT (No such file or directory)
stat("/DATA/Projects/LearnPython/wxGlade/.git", 0x7ffe2dcf8010) = -1 ENOENT (No such file or directory)
lstat("/DATA/Projects/LearnPython/wxGlade/.git/commondir", 0x7ffe2dcf7fb0) = -1 ENOENT (No such file or directory)
mkdir("/DATA/Projects/LearnPython/wxGlade/.git", 0777) = 0
lstat("/DATA/Projects/LearnPython/wxGlade/.git/commondir", 0x7ffe2dcf7f50) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/config", O_RDONLY) = -1 ENOENT (No such file or directory)
access("/etc/gitconfig", R_OK) = 0
openat(AT_FDCWD, "/etc/gitconfig", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=180, ...}) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=180, ...}) = 0
read(3, "[alias]\n\tglog = log --graph --da"..., 4096) = 180
read(3, "", 4096) = 0
close(3) = 0
access("/home/user/.config/git/config", R_OK) = -1 ENOENT (No such file or directory)
access("/home/user/.gitconfig", R_OK) = 0
openat(AT_FDCWD, "/home/user/.gitconfig", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=110, ...}) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=110, ...}) = 0
read(3, "[user]\n\temail = user@xxxx\n\tname"..., 4096) = 110
read(3, "", 4096) = 0
close(3) = 0
access("/DATA/Projects/LearnPython/wxGlade/.git/config", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/git-core/templates/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/usr/share/git-core/templates/config", O_RDONLY) = -1 ENOENT (No such file or directory)
mkdir("/DATA/Projects/LearnPython/wxGlade/.git/", 0777) = -1 EEXIST (File exists)
getdents(3, /* 6 entries */, 32768) = 168
lstat("/DATA/Projects/LearnPython/wxGlade/.git/description", 0x7ffe2dcf7fe0) = -1 ENOENT (No such file or directory)
lstat("/usr/share/git-core/templates/description", {st_mode=S_IFREG|0644, st_size=73, ...}) = 0
openat(AT_FDCWD, "/usr/share/git-core/templates/description", O_RDONLY) = 4
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/description", O_WRONLY|O_CREAT|O_EXCL, 0666) = 5
read(4, "Unnamed repository; edit this fi"..., 8192) = 73
write(5, "Unnamed repository; edit this fi"..., 73) = 73
read(4, "", 8192) = 0
close(4) = 0
close(5) = 0
lstat("/DATA/Projects/LearnPython/wxGlade/.git/branches", 0x7ffe2dcf7fe0) = -1 ENOENT (No such file or directory)
lstat("/usr/share/git-core/templates/branches", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/usr/share/git-core/templates/branches", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4
fstat(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
mkdir("/DATA/Projects/LearnPython/wxGlade/.git/branches/", 0777) = 0
getdents(4, /* 2 entries */, 32768) = 48
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
lstat("/DATA/Projects/LearnPython/wxGlade/.git/hooks", 0x7ffe2dcf7fe0) = -1 ENOENT (No such file or directory)
lstat("/usr/share/git-core/templates/hooks", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/usr/share/git-core/templates/hooks", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4
fstat(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
mkdir("/DATA/Projects/LearnPython/wxGlade/.git/hooks/", 0777) = 0
getdents(4, /* 13 entries */, 32768) = 520
lstat("/DATA/Projects/LearnPython/wxGlade/.git/hooks/update.sample", 0x7ffe2dcf7e30) = -1 ENOENT (No such file or directory)
lstat("/usr/share/git-core/templates/hooks/update.sample", {st_mode=S_IFREG|0755, st_size=3610, ...}) = 0
openat(AT_FDCWD, "/usr/share/git-core/templates/hooks/update.sample", O_RDONLY) = 5
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/hooks/update.sample", O_WRONLY|O_CREAT|O_EXCL, 0777) = 6
read(5, "#!/bin/sh\n#\n# An example hook sc"..., 8192) = 3610
write(6, "#!/bin/sh\n#\n# An example hook sc"..., 3610) = 3610
read(5, "", 8192) = 0
close(5) = 0
close(6) = 0
lstat("/DATA/Projects/LearnPython/wxGlade/.git/hooks/applypatch-msg.sample", 0x7ffe2dcf7e30) = -1 ENOENT (No such file or directory)
lstat("/usr/share/git-core/templates/hooks/applypatch-msg.sample", {st_mode=S_IFREG|0755, st_size=478, ...}) = 0
openat(AT_FDCWD, "/usr/share/git-core/templates/hooks/applypatch-msg.sample", O_RDONLY) = 5
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/hooks/applypatch-msg.sample", O_WRONLY|O_CREAT|O_EXCL, 0777) = 6
read(5, "#!/bin/sh\n#\n# An example hook sc"..., 8192) = 478
write(6, "#!/bin/sh\n#\n# An example hook sc"..., 478) = 478
read(5, "", 8192) = 0
close(5) = 0
close(6) = 0
lstat("/DATA/Projects/LearnPython/wxGlade/.git/hooks/commit-msg.sample", 0x7ffe2dcf7e30) = -1 ENOENT (No such file or directory)
lstat("/usr/share/git-core/templates/hooks/commit-msg.sample", {st_mode=S_IFREG|0755, st_size=896, ...}) = 0
openat(AT_FDCWD, "/usr/share/git-core/templates/hooks/commit-msg.sample", O_RDONLY) = 5
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/hooks/commit-msg.sample", O_WRONLY|O_CREAT|O_EXCL, 0777) = 6
read(5, "#!/bin/sh\n#\n# An example hook sc"..., 8192) = 896
write(6, "#!/bin/sh\n#\n# An example hook sc"..., 896) = 896
read(5, "", 8192) = 0
close(5) = 0
close(6) = 0
lstat("/DATA/Projects/LearnPython/wxGlade/.git/hooks/pre-receive.sample", 0x7ffe2dcf7e30) = -1 ENOENT (No such file or directory)
lstat("/usr/share/git-core/templates/hooks/pre-receive.sample", {st_mode=S_IFREG|0755, st_size=544, ...}) = 0
openat(AT_FDCWD, "/usr/share/git-core/templates/hooks/pre-receive.sample", O_RDONLY) = 5
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/hooks/pre-receive.sample", O_WRONLY|O_CREAT|O_EXCL, 0777) = 6
read(5, "#!/bin/sh\n#\n# An example hook sc"..., 8192) = 544
write(6, "#!/bin/sh\n#\n# An example hook sc"..., 544) = 544
read(5, "", 8192) = 0
close(5) = 0
close(6) = 0
lstat("/DATA/Projects/LearnPython/wxGlade/.git/hooks/fsmonitor-watchman.sample", 0x7ffe2dcf7e30) = -1 ENOENT (No such file or directory)
lstat("/usr/share/git-core/templates/hooks/fsmonitor-watchman.sample", {st_mode=S_IFREG|0755, st_size=3327, ...}) = 0
openat(AT_FDCWD, "/usr/share/git-core/templates/hooks/fsmonitor-watchman.sample", O_RDONLY) = 5
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/hooks/fsmonitor-watchman.sample", O_WRONLY|O_CREAT|O_EXCL, 0777) = 6
read(5, "#!/usr/bin/perl\n\nuse strict;\nuse"..., 8192) = 3327
write(6, "#!/usr/bin/perl\n\nuse strict;\nuse"..., 3327) = 3327
read(5, "", 8192) = 0
close(5) = 0
close(6) = 0
lstat("/DATA/Projects/LearnPython/wxGlade/.git/hooks/post-update.sample", 0x7ffe2dcf7e30) = -1 ENOENT (No such file or directory)
lstat("/usr/share/git-core/templates/hooks/post-update.sample", {st_mode=S_IFREG|0755, st_size=189, ...}) = 0
openat(AT_FDCWD, "/usr/share/git-core/templates/hooks/post-update.sample", O_RDONLY) = 5
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/hooks/post-update.sample", O_WRONLY|O_CREAT|O_EXCL, 0777) = 6
read(5, "#!/bin/sh\n#\n# An example hook sc"..., 8192) = 189
write(6, "#!/bin/sh\n#\n# An example hook sc"..., 189) = 189
read(5, "", 8192) = 0
close(5) = 0
close(6) = 0
lstat("/DATA/Projects/LearnPython/wxGlade/.git/hooks/pre-push.sample", 0x7ffe2dcf7e30) = -1 ENOENT (No such file or directory)
lstat("/usr/share/git-core/templates/hooks/pre-push.sample", {st_mode=S_IFREG|0755, st_size=1348, ...}) = 0
openat(AT_FDCWD, "/usr/share/git-core/templates/hooks/pre-push.sample", O_RDONLY) = 5
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/hooks/pre-push.sample", O_WRONLY|O_CREAT|O_EXCL, 0777) = 6
read(5, "#!/bin/sh\n\n# An example hook scr"..., 8192) = 1348
write(6, "#!/bin/sh\n\n# An example hook scr"..., 1348) = 1348
read(5, "", 8192) = 0
close(5) = 0
close(6) = 0
lstat("/DATA/Projects/LearnPython/wxGlade/.git/hooks/pre-commit.sample", 0x7ffe2dcf7e30) = -1 ENOENT (No such file or directory)
lstat("/usr/share/git-core/templates/hooks/pre-commit.sample", {st_mode=S_IFREG|0755, st_size=1642, ...}) = 0
openat(AT_FDCWD, "/usr/share/git-core/templates/hooks/pre-commit.sample", O_RDONLY) = 5
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/hooks/pre-commit.sample", O_WRONLY|O_CREAT|O_EXCL, 0777) = 6
read(5, "#!/bin/sh\n#\n# An example hook sc"..., 8192) = 1642
write(6, "#!/bin/sh\n#\n# An example hook sc"..., 1642) = 1642
read(5, "", 8192) = 0
close(5) = 0
close(6) = 0
lstat("/DATA/Projects/LearnPython/wxGlade/.git/hooks/pre-rebase.sample", 0x7ffe2dcf7e30) = -1 ENOENT (No such file or directory)
lstat("/usr/share/git-core/templates/hooks/pre-rebase.sample", {st_mode=S_IFREG|0755, st_size=4898, ...}) = 0
openat(AT_FDCWD, "/usr/share/git-core/templates/hooks/pre-rebase.sample", O_RDONLY) = 5
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/hooks/pre-rebase.sample", O_WRONLY|O_CREAT|O_EXCL, 0777) = 6
read(5, "#!/bin/sh\n#\n# Copyright (c) 2006"..., 8192) = 4898
write(6, "#!/bin/sh\n#\n# Copyright (c) 2006"..., 4898) = 4898
read(5, "", 8192) = 0
close(5) = 0
close(6) = 0
lstat("/DATA/Projects/LearnPython/wxGlade/.git/hooks/pre-applypatch.sample", 0x7ffe2dcf7e30) = -1 ENOENT (No such file or directory)
lstat("/usr/share/git-core/templates/hooks/pre-applypatch.sample", {st_mode=S_IFREG|0755, st_size=424, ...}) = 0
openat(AT_FDCWD, "/usr/share/git-core/templates/hooks/pre-applypatch.sample", O_RDONLY) = 5
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/hooks/pre-applypatch.sample", O_WRONLY|O_CREAT|O_EXCL, 0777) = 6
read(5, "#!/bin/sh\n#\n# An example hook sc"..., 8192) = 424
write(6, "#!/bin/sh\n#\n# An example hook sc"..., 424) = 424
read(5, "", 8192) = 0
close(5) = 0
close(6) = 0
lstat("/DATA/Projects/LearnPython/wxGlade/.git/hooks/prepare-commit-msg.sample", 0x7ffe2dcf7e30) = -1 ENOENT (No such file or directory)
lstat("/usr/share/git-core/templates/hooks/prepare-commit-msg.sample", {st_mode=S_IFREG|0755, st_size=1492, ...}) = 0
openat(AT_FDCWD, "/usr/share/git-core/templates/hooks/prepare-commit-msg.sample", O_RDONLY) = 5
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/hooks/prepare-commit-msg.sample", O_WRONLY|O_CREAT|O_EXCL, 0777) = 6
read(5, "#!/bin/sh\n#\n# An example hook sc"..., 8192) = 1492
write(6, "#!/bin/sh\n#\n# An example hook sc"..., 1492) = 1492
read(5, "", 8192) = 0
close(5) = 0
close(6) = 0
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
lstat("/DATA/Projects/LearnPython/wxGlade/.git/info", 0x7ffe2dcf7fe0) = -1 ENOENT (No such file or directory)
lstat("/usr/share/git-core/templates/info", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/usr/share/git-core/templates/info", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4
fstat(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
mkdir("/DATA/Projects/LearnPython/wxGlade/.git/info/", 0777) = 0
getdents(4, /* 3 entries */, 32768) = 80
lstat("/DATA/Projects/LearnPython/wxGlade/.git/info/exclude", 0x7ffe2dcf7e30) = -1 ENOENT (No such file or directory)
lstat("/usr/share/git-core/templates/info/exclude", {st_mode=S_IFREG|0644, st_size=240, ...}) = 0
openat(AT_FDCWD, "/usr/share/git-core/templates/info/exclude", O_RDONLY) = 5
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/info/exclude", O_WRONLY|O_CREAT|O_EXCL, 0666) = 6
read(5, "# git ls-files --others --exclud"..., 8192) = 240
write(6, "# git ls-files --others --exclud"..., 240) = 240
read(5, "", 8192) = 0
close(5) = 0
close(6) = 0
getdents(4, /* 0 entries */, 32768) = 0
close(4) = 0
getdents(3, /* 0 entries */, 32768) = 0
close(3) = 0
access("/etc/gitconfig", R_OK) = 0
openat(AT_FDCWD, "/etc/gitconfig", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=180, ...}) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=180, ...}) = 0
read(3, "[alias]\n\tglog = log --graph --da"..., 4096) = 180
read(3, "", 4096) = 0
close(3) = 0
access("/home/user/.config/git/config", R_OK) = -1 ENOENT (No such file or directory)
access("/home/user/.gitconfig", R_OK) = 0
openat(AT_FDCWD, "/home/user/.gitconfig", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=110, ...}) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=110, ...}) = 0
read(3, "[user]\n\temail = user@xxxx\n\tname"..., 4096) = 110
read(3, "", 4096) = 0
close(3) = 0
access("/DATA/Projects/LearnPython/wxGlade/.git/config", R_OK) = -1 ENOENT (No such file or directory)
mkdir("/DATA/Projects/LearnPython/wxGlade/.git/refs", 0777) = 0
lstat("/DATA/Projects/LearnPython/wxGlade/.git/commondir", 0x7ffe2dcf7fa0) = -1 ENOENT (No such file or directory)
mkdir("/DATA/Projects/LearnPython/wxGlade/.git/refs/heads", 0777) = 0
mkdir("/DATA/Projects/LearnPython/wxGlade/.git/refs/tags", 0777) = 0
access("/DATA/Projects/LearnPython/wxGlade/.git/HEAD", R_OK) = -1 ENOENT (No such file or directory)
readlink("/DATA/Projects/LearnPython/wxGlade/.git/HEAD", 0x7ffe2dcf839c, 1) = -1 ENOENT (No such file or directory)
lstat("/DATA/Projects/LearnPython/wxGlade/.git/HEAD", 0x7ffe2dcf7ee0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/packed-refs", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/DATA/Projects/LearnPython/wxGlade/.git/packed-refs", 0x7ffe2dcf7d10) = -1 ENOENT (No such file or directory)
getpid() = 3290
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/HEAD.lock", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0666) = 3
rt_sigaction(SIGINT, {sa_handler=0x56492fd70b60, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f6454562f20}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGHUP, {sa_handler=0x56492fd70b60, sa_mask=[HUP], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f6454562f20}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=0x56492fd70b60, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f6454562f20}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGQUIT, {sa_handler=0x56492fd70b60, sa_mask=[QUIT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f6454562f20}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGPIPE, {sa_handler=0x56492fd70b60, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f6454562f20}, {sa_handler=SIG_DFL, sa_mask=[PIPE], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f6454562f20}, 8) = 0
getpid() = 3290
lstat("/DATA/Projects/LearnPython/wxGlade/.git/HEAD", 0x7ffe2dcf7ed0) = -1 ENOENT (No such file or directory)
stat("/DATA/Projects/LearnPython/wxGlade/.git/packed-refs", 0x7ffe2dcf7c10) = -1 ENOENT (No such file or directory)
fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0770, st_size=0, ...}) = 0
lstat("/DATA/Projects/LearnPython/wxGlade/.git/HEAD", 0x7ffe2dcf8020) = -1 ENOENT (No such file or directory)
write(3, "ref: refs/heads/master\n", 23) = 23
close(3) = 0
rename("/DATA/Projects/LearnPython/wxGlade/.git/HEAD.lock", "/DATA/Projects/LearnPython/wxGlade/.git/HEAD") = 0
readlink("/DATA/Projects/LearnPython/wxGlade/.git/config", 0x564930b150a0, 46) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/config.lock", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0666) = 3
getpid() = 3290
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/config", O_RDONLY) = -1 ENOENT (No such file or directory)
write(3, "[core]\n", 7) = 7
write(3, "\trepositoryformatversion = 0\n", 29) = 29
close(3) = 0
rename("/DATA/Projects/LearnPython/wxGlade/.git/config.lock", "/DATA/Projects/LearnPython/wxGlade/.git/config") = 0
lstat("/DATA/Projects/LearnPython/wxGlade/.git/config", {st_mode=S_IFREG|0770, st_size=36, ...}) = 0
chmod("/DATA/Projects/LearnPython/wxGlade/.git/config", 0100670) = -1 EPERM (Operation not permitted)
readlink("/DATA/Projects/LearnPython/wxGlade/.git/config", 0x564930b162e0, 46) = -1 EINVAL (Invalid argument)
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/config.lock", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0666) = 3
getpid() = 3290
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/config", O_RDONLY) = 4
openat(AT_FDCWD, "/DATA/Projects/LearnPython/wxGlade/.git/config", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0770, st_size=36, ...}) = 0
fstat(5, {st_mode=S_IFREG|0770, st_size=36, ...}) = 0
read(5, "[core]\n\trepositoryformatversion "..., 4096) = 36
lseek(5, 0, SEEK_CUR) = 36
read(5, "", 4096) = 0
close(5) = 0
fstat(4, {st_mode=S_IFREG|0770, st_size=36, ...}) = 0
mmap(NULL, 36, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7f64553f1000
close(4) = 0
chmod("/DATA/Projects/LearnPython/wxGlade/.git/config.lock", 0770) = -1 EPERM (Operation not permitted)
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=2995, ...}) = 0
read(4, "# Locale name alias data base.\n#"..., 4096) = 2995
read(4, "", 4096) = 0
close(4) = 0
openat(AT_FDCWD, "/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale-langpack/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale-langpack/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "error: chmod on /DATA/Projects/L"..., 100error: chmod on /DATA/Projects/LearnPython/wxGlade/.git/config.lock failed: Operation not permitted
) = 100
close(3) = 0
unlink("/DATA/Projects/LearnPython/wxGlade/.git/config.lock") = 0
munmap(0x7f64553f1000, 36) = 0
openat(AT_FDCWD, "/usr/share/locale/en_US/LC_MESSAGES/git.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en/LC_MESSAGES/git.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale-langpack/en_US/LC_MESSAGES/git.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale-langpack/en/LC_MESSAGES/git.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "fatal: could not set 'core.filem"..., 48fatal: could not set 'core.filemode' to 'false'
) = 48
getpid() = 3290
exit_group(128) = ?
+++ exited with 128 +++
I can, however create and edit files "manually". It looks as if some programs run as another user with less privileges than me. Is that correct? How can I get these things to work nonetheless?
And for the fstab entry, there is a gid but not a uid. Is that unusual?
Who is that group 46? Does that depend on the individual installation or is it some convention?
Last edited by lukeer; 01-02-2020 at 10:49 AM .
01-02-2020, 10:55 AM
#5
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,127
I wouldn't suggest you to put a git repo on a mounted ntfs. Or better to say: I don't recommend it. The reason was already explained: the permission system on ntfs is not compatible with the permissions on a linux, therefore it simply won't work [properly]. There is no way to get it work. On NTFS use native git (for windows).
By the way, umask 000 may help, but still not recommended. strace will not help to go further.
01-03-2020, 09:26 AM
#6
Member
Registered: Feb 2013
Posts: 58
Original Poster
Rep:
There's one thing. I have some git-controlled projects on that NTFS drive. I created and changed them before upgrading my Linux Mint from 17 to 19.2. Their git part seemed to work flawlessly. I found the
/etc/fstab from that installation
Code:
UUID=20D0B80DD0B7E6E6 /mnt/DATA ntfs defaults,nls=utf8,umask=000,uid=1000,windows_names 0 0
I'm assuming that with those mount options, everything will be back to the state before upgrading.
pan64 recommended not to do so. What could possibly go wrong?
I mean, what errors would using the NTFS mount potentially trigger?
Is it something like "Don't never rebase and you're safe" or is using linux git on an NTFS drive prone to errors that go unnoticed until the repo is broken beyond repair?
01-03-2020, 09:42 AM
#7
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,127
should I repeat it again? the user/group management and the permissions handled differently on windows. ntfs is not open source, therefore the ntfs/samba implementation [on linux] will never be perfect. It is just unsafe. You may get errors like you posted any time. From the other hand using umask 0 may give access to your repositories to aliens too.
01-03-2020, 09:49 AM
#8
Senior Member
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
And also, the error message below you got before, clearly tells you that
chmod cannot change NTFS permissions. Therefore it can only change Unix permissions, as already said, NTFS permissions are NOT the same as Unix/Linux permissions, period. I'd suggest you take pan64's advice and either use Windows for your git repo if you want to use NTFS, or backup your git repo and use a Linux filesystem instead of NTFS, if you want to use Linux instead.
Code:
error: chmod on /DATA/Projects/LearnPython/wxGlade/.git/config.lock failed: Operation not permitted
01-03-2020, 10:11 AM
#9
Member
Registered: Feb 2013
Posts: 58
Original Poster
Rep:
I understand that NTFS permissions work differently from UNIX permissions. I just wanted to know if some errors are to be expected and everything else will work. It doesn't seem so.
So I'll have to change my data partition onto a filesystem that's native to linux. If I ever want to boot my trusty old Windows XP again, does anyone know of an ext4 driver that will work there?
01-03-2020, 10:18 AM
#10
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,127
yes, there is an ext4 driver for windows, but you can simply try to git clone from windows to linux (or back).
01-03-2020, 10:18 AM
#11
Senior Member
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Yes, you can download ext4 filesystem drivers for Windows. From memory, you can download the Ext2fsd drivers for Windows.
All times are GMT -5. The time now is 12:14 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News