No subject


Mon Dec 1 12:27:21 GMT 2003


the directory
 I setup in the smb.conf file on the LINUX machine named DP-WS67/CDs

I want to give all members of the DP group ownership of the directory.
When I enter      chgrp  'HY-VEE\AUDIT'  /RH1dat/CDs  it works.
When I enter      chgrp 'Hy-VEE\DP'   /RH1dat/CDs       I get           =
chgrp:  invalid group=20
name 'HY-VEE\\DP' =20

I ran these 2 commands with strace and compared the output which I =
include below.=20
I should say that I set up a LINUX user RSS1 before I installed SAMBA =
and joined the
 domain which also has a user RSS1.  It's me.
I am a member of the DP group but not the AUDIT group.  I suspect this =
is causing the problem.
Can anyone confirm this by looking at the difference in the strace =
output? Do you know how to fix it?



  #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =
Global Settings =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
[global]
   workgroup =3D Hy-Vee
   netbios name =3D DP-WS67
   server string =3D Samba Server
   security =3D domain
   password server =3D *
   encrypt passwords =3D yes
   winbind uid =3D 1000-50000
   winbind gid =3D 1000-50000
   template homedir =3D /home/%D/%U
   template shell   =3D /bin/false
[CDs]
   path =3D /RH1dat/CDs
   read only =3D no
   force group =3D DP
   force create mode    =3D 0070
   force directory mode =3D 0070
   create mask          =3D 0770
   directory mask       =3D 0770


chgrp for AUDIT which works OK


execve("/bin/chgrp", ["chgrp", "HY-VEE\\AUDIT", "/RH1dat/CDs"], [/* 33 =
vars */]) =3D 0
uname({sys=3D"Linux", node=3D"DP-WS67", ...}) =3D 0
brk(0)                                  =3D 0x804d3a8
open("/etc/ld.so.preload", O_RDONLY)    =3D -1 ENOENT (No such file or =
directory)
open("/etc/ld.so.cache", O_RDONLY)      =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D79092, ...}) =3D 0
old_mmap(NULL, 79092, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0x40013000
close(3)                                =3D 0
open("/lib/libacl.so.1", O_RDONLY)      =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \24\0\000"..., =
1024) =3D 1024
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D306366, ...}) =3D 0
old_mmap(NULL, 25312, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D =
0x40027000
mprotect(0x4002d000, 736, PROT_NONE)    =3D 0
old_mmap(0x4002d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, =
3, 0x5000) =3D 0x4002d000
close(3)                                =3D 0
open("/lib/i686/libc.so.6", O_RDONLY)   =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220Y\1"..., =
1024) =3D 1024
fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D1395734, ...}) =3D 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, =
-1, 0) =3D 0x4002e000
old_mmap(0x42000000, 1239844, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
=3D 0x42000000
mprotect(0x42126000, 35620, PROT_NONE)  =3D 0
old_mmap(0x42126000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, =
3, 0x126000) =3D 0x42126000
old_mmap(0x4212b000, 15140, PROT_READ|PROT_WRITE, =
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0x4212b000
close(3)                                =3D 0
open("/lib/libattr.so.1", O_RDONLY)     =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\n\0"..., =
1024) =3D 1024
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D31051, ...}) =3D 0
old_mmap(NULL, 10020, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D =
0x4002f000
mprotect(0x40031000, 1828, PROT_NONE)   =3D 0
old_mmap(0x40031000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, =
3, 0x1000) =3D 0x40031000
close(3)                                =3D 0
munmap(0x40013000, 79092)               =3D 0
brk(0)                                  =3D 0x804d3a8
brk(0x804e3a8)                          =3D 0x804e3a8
brk(0x804f000)                          =3D 0x804f000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D1830272, ...}) =3D 0
mmap2(NULL, 1830272, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0x40032000
close(3)                                =3D 0
socket(PF_UNIX, SOCK_STREAM, 0)         =3D 3
connect(3, {sin_family=3DAF_UNIX, path=3D"/var/run/.nscd_socket"}, 110) =
=3D -1 ENOENT (No such file or directory)
close(3)                                =3D 0
open("/etc/nsswitch.conf", O_RDONLY)    =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D1743, ...}) =3D 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, =
0) =3D 0x40013000
read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) =3D 1743
read(3, "", 4096)                       =3D 0
close(3)                                =3D 0
munmap(0x40013000, 4096)                =3D 0
open("/etc/ld.so.cache", O_RDONLY)      =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D79092, ...}) =3D 0
old_mmap(NULL, 79092, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0x40013000
close(3)                                =3D 0
open("/lib/libnss_files.so.2", O_RDONLY) =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\35\0\000"..., =
1024) =3D 1024
fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D42657, ...}) =3D 0
old_mmap(NULL, 39448, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D =
0x401f1000
mprotect(0x401fa000, 2584, PROT_NONE)   =3D 0
old_mmap(0x401fa000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, =
3, 0x8000) =3D 0x401fa000
close(3)                                =3D 0
munmap(0x40013000, 79092)               =3D 0
open("/etc/group", O_RDONLY)            =3D 3
fcntl64(3, F_GETFD)                     =3D 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         =3D 0
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D645, ...}) =3D 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, =
0) =3D 0x40013000
read(3, "root:x:0:root\nbin:x:1:root,bin,d"..., 4096) =3D 645
read(3, "", 4096)                       =3D 0
close(3)                                =3D 0
munmap(0x40013000, 4096)                =3D 0
open("/etc/ld.so.cache", O_RDONLY)      =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D79092, ...}) =3D 0
old_mmap(NULL, 79092, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0x40013000
close(3)                                =3D 0
open("/lib/libnss_winbind.so.2", O_RDONLY) =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\17"..., =
1024) =3D 1024
fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D59749, ...}) =3D 0
old_mmap(NULL, 23600, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D =
0x401fb000
mprotect(0x401fe000, 11312, PROT_NONE)  =3D 0
old_mmap(0x401fe000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, =
3, 0x2000) =3D 0x401fe000
old_mmap(0x401ff000, 7216, PROT_READ|PROT_WRITE, =
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0x401ff000
close(3)                                =3D 0
munmap(0x40013000, 79092)               =3D 0
getpid()                                =3D 6736
getpid()                                =3D 6736
getpid()                                =3D 6736
lstat64("/tmp/.winbindd", {st_mode=3DS_IFDIR|0755, st_size=3D4096, ...}) =
=3D 0
lstat64("/tmp/.winbindd/pipe", {st_mode=3DS_IFSOCK|0777, st_size=3D0, =
...}) =3D 0
socket(PF_UNIX, SOCK_STREAM, 0)         =3D 3
connect(3, {sin_family=3DAF_UNIX, path=3D"/tmp/.winbindd/pipe"}, 110) =
=3D 0
select(4, [3], NULL, NULL, {0, 0})      =3D 0 (Timeout)
write(3, "\30\5\0\0\3\0\0\0P\32\0\0HY-VEE\\AUDIT\0\0\0\0\0\0\0\0"..., =
1304) =3D 1304
read(3, "x\5\0\0\1\0\0\0HY-VEE\\AUDIT\0\0\0\0\0\0\0\0\0\0\0\0"..., 1304) =
=3D 1304
read(3, "HY-VEE\\L1M1,HY-VEE\\MRW1,HY-VEE\\V"..., 96) =3D 96
getpid()                                =3D 6736
getpid()                                =3D 6736
select(4, [3], NULL, NULL, {0, 0})      =3D 0 (Timeout)
write(3, "\30\5\0\0\n\0\0\0P\32\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., =
1304) =3D 1304
read(3, "\30\5\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., =
1304) =3D 1304
lstat64("/RH1dat/CDs", {st_mode=3DS_IFDIR|0775, st_size=3D4096, ...}) =
=3D 0
_exit(0)                                =3D ?

chgrp   for DP which does not work  - bad looking stuff in bold below.

execve("/bin/chgrp", ["chgrp", "HY-VEE\\DP", "/RH1dat/CDs"], [/* 33 vars =
*/]) =3D 0
uname({sys=3D"Linux", node=3D"DP-WS67", ...}) =3D 0
brk(0)                                  =3D 0x804d3a8
open("/etc/ld.so.preload", O_RDONLY)    =3D -1 ENOENT (No such file or =
directory)
open("/etc/ld.so.cache", O_RDONLY)      =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D79092, ...}) =3D 0
old_mmap(NULL, 79092, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0x40013000
close(3)                                =3D 0
open("/lib/libacl.so.1", O_RDONLY)      =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \24\0\000"..., =
1024) =3D 1024
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D306366, ...}) =3D 0
old_mmap(NULL, 25312, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D =
0x40027000
mprotect(0x4002d000, 736, PROT_NONE)    =3D 0
old_mmap(0x4002d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, =
3, 0x5000) =3D 0x4002d000
close(3)                                =3D 0
open("/lib/i686/libc.so.6", O_RDONLY)   =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220Y\1"..., =
1024) =3D 1024
fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D1395734, ...}) =3D 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, =
-1, 0) =3D 0x4002e000
old_mmap(0x42000000, 1239844, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
=3D 0x42000000
mprotect(0x42126000, 35620, PROT_NONE)  =3D 0
old_mmap(0x42126000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, =
3, 0x126000) =3D 0x42126000
old_mmap(0x4212b000, 15140, PROT_READ|PROT_WRITE, =
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0x4212b000
close(3)                                =3D 0
open("/lib/libattr.so.1", O_RDONLY)     =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\n\0"..., =
1024) =3D 1024
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D31051, ...}) =3D 0
old_mmap(NULL, 10020, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D =
0x4002f000
mprotect(0x40031000, 1828, PROT_NONE)   =3D 0
old_mmap(0x40031000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, =
3, 0x1000) =3D 0x40031000
close(3)                                =3D 0
munmap(0x40013000, 79092)               =3D 0
brk(0)                                  =3D 0x804d3a8
brk(0x804e3a8)                          =3D 0x804e3a8
brk(0x804f000)                          =3D 0x804f000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D1830272, ...}) =3D 0
mmap2(NULL, 1830272, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0x40032000
close(3)                                =3D 0
socket(PF_UNIX, SOCK_STREAM, 0)         =3D 3
connect(3, {sin_family=3DAF_UNIX, path=3D"/var/run/.nscd_socket"}, 110) =
=3D -1 ENOENT (No such file or directory)
close(3)                                =3D 0
open("/etc/nsswitch.conf", O_RDONLY)    =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D1743, ...}) =3D 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, =
0) =3D 0x40013000
read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) =3D 1743
read(3, "", 4096)                       =3D 0
close(3)                                =3D 0
munmap(0x40013000, 4096)                =3D 0
open("/etc/ld.so.cache", O_RDONLY)      =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D79092, ...}) =3D 0
old_mmap(NULL, 79092, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0x40013000
close(3)                                =3D 0
open("/lib/libnss_files.so.2", O_RDONLY) =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\35\0\000"..., =
1024) =3D 1024
fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D42657, ...}) =3D 0
old_mmap(NULL, 39448, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D =
0x401f1000
mprotect(0x401fa000, 2584, PROT_NONE)   =3D 0
old_mmap(0x401fa000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, =
3, 0x8000) =3D 0x401fa000
close(3)                                =3D 0
munmap(0x40013000, 79092)               =3D 0
open("/etc/group", O_RDONLY)            =3D 3
fcntl64(3, F_GETFD)                     =3D 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         =3D 0
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D645, ...}) =3D 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, =
0) =3D 0x40013000
read(3, "root:x:0:root\nbin:x:1:root,bin,d"..., 4096) =3D 645
read(3, "", 4096)                       =3D 0
close(3)                                =3D 0
munmap(0x40013000, 4096)                =3D 0
open("/etc/ld.so.cache", O_RDONLY)      =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D79092, ...}) =3D 0
old_mmap(NULL, 79092, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0x40013000
close(3)                                =3D 0
open("/lib/libnss_winbind.so.2", O_RDONLY) =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\17"..., =
1024) =3D 1024
fstat64(3, {st_mode=3DS_IFREG|0755, st_size=3D59749, ...}) =3D 0
old_mmap(NULL, 23600, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D =
0x401fb000
mprotect(0x401fe000, 11312, PROT_NONE)  =3D 0
old_mmap(0x401fe000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, =
3, 0x2000) =3D 0x401fe000
old_mmap(0x401ff000, 7216, PROT_READ|PROT_WRITE, =
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0x401ff000
close(3)                                =3D 0
munmap(0x40013000, 79092)               =3D 0
getpid()                                =3D 6739
getpid()                                =3D 6739
getpid()                                =3D 6739
lstat64("/tmp/.winbindd", {st_mode=3DS_IFDIR|0755, st_size=3D4096, ...}) =
=3D 0
lstat64("/tmp/.winbindd/pipe", {st_mode=3DS_IFSOCK|0777, st_size=3D0, =
...}) =3D 0
socket(PF_UNIX, SOCK_STREAM, 0)         =3D 3
connect(3, {sin_family=3DAF_UNIX, path=3D"/tmp/.winbindd/pipe"}, 110) =
=3D 0
select(4, [3], NULL, NULL, {0, 0})      =3D 0 (Timeout)
write(3, "\30\5\0\0\3\0\0\0S\32\0\0HY-VEE\\DP\0\0\0\0\0\0\0\0\0\0"..., =
1304) =3D 1304
read(3, "L\10\0\0\1\0\0\0HY-VEE\\DP\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., =
1304) =3D 1304
brk(0x8050000)                          =3D 0x8050000
read(3, "HY-VEE\\AJS1,HY-VEE\\JDC1,HY-VEE\\o"..., 820) =3D 820
open("/usr/share/locale/locale.alias", O_RDONLY) =3D 4
fstat64(4, {st_mode=3DS_IFREG|0644, st_size=3D2601, ...}) =3D 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, =
0) =3D 0x40013000
read(4, "# Locale name alias data base.\n#"..., 4096) =3D 2601
read(4, "", 4096)                       =3D 0
close(4)                                =3D 0
munmap(0x40013000, 4096)                =3D 0
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/fileutils.mo", O_RDONLY) =
=3D -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/fileutils.mo", O_RDONLY) =
=3D -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/fileutils.mo", O_RDONLY) =3D =
-1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/fileutils.mo", O_RDONLY) =
=3D -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/fileutils.mo", O_RDONLY) =3D =
-1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/fileutils.mo", O_RDONLY) =3D -1 =
ENOENT (No such file or directory)
write(2, "chgrp: ", 7)                  =3D 7
write(2, "invalid group name `HY-VEE\\\\DP\'", 31) =3D 31
write(2, "\n", 1)                       =3D 1
_exit(1)                                =3D ?



=09



More information about the samba mailing list