php - Webapp creates file with strange Group Name -
i'm having trouble website/application setting strange group names new files.
whenever create new file website (a log file, txt file, anything) sets user webapp (correctly), group name 4294967295
if use terminal ssh instance , try data on user doesn't return anything. example,
$ sudo groups 4294967295 groups: 4294967295: no such user further, can't add mystery group of other users.
this making things difficult because have run cron jobs different user , let them both write same log (so both must share group).
i recognize it's strange (and maybe meaningful) 4294967295 highest number 1 can reach 32 bits.
any ideas or suggestions? don't have extensive linux background , haven't had luck searching answers.
i'm using amazon aws , ec2-instance.
thanks.
additional info:
how'd group name?
ls -l -rwxrwxr-x 1 webapp 4294967295 8347 apr 16 17:35 log_2013-04-16.txt groups 4294967295 groups: 4294967295: no such user additional info #2:
$ file /bin/ls /bin/ls: elf 64-bit lsb executable, x86-64, version 1 (sysv), dynamically linked (uses shared libs), gnu/linux 2.6.18, buildid[sha1]=0x083f0a5a25fb311dae23412bcc79f384a865e7d4, stripped $ groups webapp webapp : webapp ec2-user additional info #3:
$ cat group root:x:0: bin:x:1:bin,daemon daemon:x:2:bin,daemon sys:x:3:bin,adm adm:x:4:adm,daemon tty:x:5: disk:x:6: lp:x:7:daemon mem:x:8: kmem:x:9: wheel:x:10:ec2-user mail:x:12:mail uucp:x:14: man:x:15: games:x:20: gopher:x:30: video:x:39: dip:x:40: ftp:x:50: lock:x:54: audio:x:63: nobody:x:99: users:x:100: utmp:x:22: utempter:x:35: cdrom:x:11: tape:x:33: dialout:x:18: floppy:x:19: ec2-user:x:500:webapp saslauth:x:76: mailnull:x:47: smmsp:x:51: ssh_keys:x:499: ntp:x:38: sshd:x:74: tcpdump:x:72: screen:x:84: dbus:x:81: webapp:x:501:ec2-user apache:x:48:
first, using groups cmd wrong way. use like:
groups webapp_user and give groups webapp_user belongs to.
i expect fact group name set 2^32 display problem or retrieve group name wrong way. can explain how 2^32? source code?
Comments
Post a Comment