Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Okay, this is actually not a request for help getting my DNS-321 working, rather I want to know how something works... I put together a bunch of users and groups in the WebUI, then I went into the shell and looked at passwd and groups and found that the users there did not match what I just entered. The users were not assigned to the groups I had put them in and the default path pointed to /root/ftp rather than /mnt/HD_a2 which I found odd. Why is this. Are their two separate user databases?
One other thing, what does the store-passwd.sh script do, does it just write passwd and group to flash?
Any insight would be helpful, thanks!
Offline
wrongway wrote:
One other thing, what does the store-passwd.sh script do, does it just write passwd and group to flash?
store-passwd.sh is a plain text shell script, you can look at it with the 'cat' command
/ # cat /ffp/sbin/store-passwd.sh #!/bin/sh echo "Copying files to mtd1..." mount -t minix /dev/mtdblock0 /sys/mtd1 cp -f /etc/passwd /sys/mtd1/. cp -f /etc/group /sys/mtd1/. cp -f /etc/shadow /sys/mtd1/. cp -f /etc/samba/smbpasswd /sys/mtd1/. #cp -f /etc/ftp_tbl /sys/mtd1/. #cp -f /etc/ftpgroup /sys/mtd1/. sync umount /sys/mtd1 echo "Copying files to mtd2..." mount -t minix /dev/mtdblock1 /sys/mtd2 cp -f /etc/passwd /sys/mtd2/. cp -f /etc/group /sys/mtd2/. cp -f /etc/shadow /sys/mtd2/. cp -f /etc/samba/smbpasswd /sys/mtd2/. #cp -f /etc/ftp_tbl /sys/mtd2/. #cp -f /etc/ftpgroup /sys/mtd2/. sync umount /sys/mtd2 echo "Done."
Looks like it copies, passwd, group, shadow, smbpasswd, ftp_tbl and ftpgroup
/sys/mtd1 and /sys/mtd2 are two areas of the flash NVRAM
I believe that the user's name in 'passwd' and 'smbpasswd' have to match, but I think
the samba password and the system logon password can be different . I don't
know about the ftp_tbl and ftpgroup (ftp function is disabled on my DNS-323)
Last edited by mig (2009-04-04 12:15:02)
Offline
Thank you, what about the user store, are there more files than just passwd that covers that?
Offline
wrongway wrote:
Thank you, what about the user store, are there more files than just passwd that covers that?
Please explain further, I'm really not sure what you mean by 'user store'?
Offline