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 2008-04-30 19:57:35

HitmanNY
New member
Registered: 2008-04-30
Posts: 3

Access denied, permissions changed?

I am migrating from XP to Vista and was having some strange issues w/my DNS323.  Using the web page interface, DNS worked ok in XP, permissions seemed a little screwy, but I didnt investigate the issue as I was able to access my data and im the only user on the network.  After moving from XP to Vista, I was still able to access data on DNS.  Then the DNS locked up, and after a reboot, I could not access the DNS filesystem at all.  Tried many combinations of deleting user and creating new users and groups through web interface, still no luck accessing any part of the filesystem.  So I removed all users and all groups, and just added a single user, matching the windows user name, with no group.  Still couldnt access.  So following another thread, I installed fun_plug and telnet'd into the DNS.  Checked out permissions, groups for my directories.  I saw that HD_a2 is owned by root and group is root.  So I tried accessing again through windows explorer, and used user root with the admin user password and I was able to get in through explorer.


So, a few questions.
1:  How should the HD_a2 dir permissions be set
2:  I deleted groups through webpages, but existing files on DNS still show group numbers (e.g. 501,502), so is this going to be a problem when I create new groups through the web GUI.
3:  My DNS locks up sometimes, any logs to check out and try to solve this problem.

Now that I access through telnet, I will probably attempt to fix any user/group issues through linux, but seems like I would have been pretty screwed had I not installed fun_plug.

Any info to help clarify this situation would help
Thanks,
Jason

Offline

 

#2 2008-05-01 02:56:11

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: Access denied, permissions changed?

HitmanNY wrote:

1:  How should the HD_a2 dir permissions be set

The answer to this depends on how you want to manage the access control
to the HD_a2 directory.  The D-Link firmware technique is to have the web GUI
manage this directory.  The web GUI runs a root so it has full permissions via the
directory owner.  If you want a bunch of different users to have permission to this
directory, create a group for those users and change the group (and permissions)
for the HD_a2 directory to your liking.  If you want everyone to have permissions
to this directory open up the 'other' permission to your liking.

HitmanNY wrote:

I deleted groups through webpages, but existing files on DNS still show group numbers (e.g. 501,502), so is this going to be a problem when I create new groups through the web GUI.

When you remove groups, those group ids are not removed from the files.  I not sure, but
I believe, the next group you create should reuse those old group numbers.  (I'll have to try this
when I get back home and get access to my DNS-323) The group id are stored in a file
/etc/group. so you can look at that file to confirm the behavior.

Which Firmware version are you using?  Which ffp?


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#3 2008-05-01 06:07:00

HitmanNY
New member
Registered: 2008-04-30
Posts: 3

Re: Access denied, permissions changed?

Yea, looking at the groups file, I see my old groups are still in there and so I think they are just out of sync with the GUI.  I will go ahead and configure these by hand.  Now that I can telnet into it, I feel a lot better as to what is going on.  I dont like the state that the web GUI got my DNS into and just glad that its a linux box.

firmware 1.2
ffp:  not sure, just installed the scripts from the zip file utelnet-kit.tar.gz that I downloaded last night, that I got from the DNS wiki.  now that I got the telnet working I will probably install one other fun_plug packages.

Im sure a quick search will give me the answer, but since im typing already I will ask:  what version of firmware is recommended and will it erase my data?

Offline

 

#4 2008-05-01 08:56:29

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: Access denied, permissions changed?

HitmanNY, well, it is hard to say which firmware is recommended...

The latest firmware FWv1.04 has the latest versions of the kernel and samba
software; however, it still has issues.  Mostly with print server and degraded
RAID functionality, reported with some hard drives.

FWv1.03 has issues, too.  Some were fixed in 1.04, like clock drift and a problem of
formating the wrong hard drive and unicode support, and other problems were not.

FWv1.02 allowed formatting the hard drive with Ext3 file system and that has been
dropped from newer firmwares.  If you are using Ext3 you will definitely have to
reformat your drive(s) to Ext2.

Whatever firmware you choose (or even if you don't upgrade) you just gotta have a backup
of your data (if it's important to you?) and always be prepared to have to reformat the
disks to complete the upgrade.

With utelnetd you are using the D-Link provided Busybox v1.00-pre1 and not all commands of that
busybox are enabled.  If you load ffp you will get a newer version of Busybox v1.8.1 (ffp0.4) and
a much richer command line linux capabilities.

Read through the forum and wiki and decide for yourself with firmware is right for you.   And you
got it right with the statement "just glad that it's a linux box"   With telnet enabled (and the awsome work
of Fonz with ffp) you can work around most of the limitations of the D-Link firmware.


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB