DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2016-07-15 17:01:41

dibs
Member
Registered: 2011-12-06
Posts: 9

How to manage groups

I have ffp installed on my dns-323 (for a very long time now) but I am just looking at setting up the samba server using the dlink gui.

However, I can't see new groups in the gui when they are added. I have checked the group file by mounting the firmware (same file as in /etc/group - how does that work?) and I can see the new groups I added just fine.

I'm assuming that something has been set in my groups file that the dlink gui doesn't like... so how to fix that?

Code:

root:x:0:root
allaccount:x:100:user,names
500:x:500:admin
501:x:501:nobody
sshd::33:sshd
www-data:x:1000:
network:x:1001:
poodoo:x:1002:
donut:x:1003:
utmp:x:22:
test:x:1004:

Offline

 

#2 2016-07-15 18:36:49

dibs
Member
Registered: 2011-12-06
Posts: 9

Re: How to manage groups

OK, I fixed it.

At some point I must have created a user called www-data using useradd (or similar) rather than the web interface (gui). This gave it a uid of 1000, and hence a primary GID was created with 1000 too. That got rewritten to flash.

I guess the dlink gui somehow looks at the last created GID when it adds a new group (hence my test groups above are all 100?) but it's actually looking for groups with GIDs in a certain range to display (hence it warns you can only add 10 groups in the gui). Therefore these high GID groups weren't visible in the gui.

What I think THEN happened was I created new users in the gui and their UIDs collided with existing GIDs...

To fix it I added all the existing users to the umtp group using the gui. Then using the command line I deleted all the 100? groups and flashed that using the store-passwd.sh script.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB