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-11-03 23:04:59

Pinkie2003
New member
Registered: 2008-11-03
Posts: 3

Reset Permissions on Volume_1 via Telnet

Hi everyone,

I have a problem with access to some files on a DNS-323 and was hoping someone here maybe able to help. The access account details for our DNS-323 were lost so the box was reset. Since this event we have been unable to access some of the files on the default share Volume_1. The NAS is configured in a RAID1 and is running firmware 1.03.

I figured I would use chmod to set the permissions and so have installed the Fun_Pack and do have access via Telnet fine except I can't seem to access HD_a2 under the MNT folder. I know very little about linux so I may well be making a stupid mistake with the way I'm trying to access files.

I figured the reason I could not access HD_a2 maybe permission related so I found a posting with instructions for enabling the root account. I've tried to turn it on but can't find the psconv from the instructions I was following. Openning the shadow file with vi showed the four accounts I have created and two nobody accounts, one with a capitol N and one with all lowercase.

Looking at the security settings on one of the files we can't access (in windows) the only user who is listed on the security tab is DNS-323\nobody with the lowercase name. This account is at the end of the shadow file BTW. On the files we can access they have the Everyone group and the DNS-323\501 group added with full control. I can't add these to the files we can't access nor can I take ownership of the files.

Am I being really dumb here? How can I reset the permissions on the files? I'm happy to reset all premissions at this stage just to get access to the files again.

Cheers

Ray

Offline

 

#2 2008-11-04 00:08:54

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: Reset Permissions on Volume_1 via Telnet

Pinkie2003 wrote:

I figured I would use chmod to set the permissions and so have installed the Fun_Pack and do have access via Telnet fine except I can't seem to access HD_a2 under the MNT folder. I know very little about linux so I may well be making a stupid mistake with the way I'm trying to access files.
Am I being really dumb here? How can I reset the permissions on the files? I'm happy to reset all premissions at this stage just to get access to the files again.

instead of MNT try mnt (linux is case sensitive) or to put it in full /mnt/HD_a2 should get you to Volume_1

So, telnet to the box then type
cd /mnt/HD_a2    <hit enter here>

and you should be in the root of volume_1 as the "root" user.  It is always helpful to post error messages, then we can see more easily where you are having trouble.
I have a script somewhere which will reset all of the ownership to nobody with 777 permissions (this means that everybody can do anything to any of the files) - in effect meaning that there is no security at all.  This is the default for the dns323 - ie when you create a new file e.g. from windows on the drive it will get these permissions.
google chown and chmod or unix file permissions to learn more.  There is also a link at the top of the forum I think from Fonz about basic linux or getting started - have a look at that post and see where it takes you.

If you want me to send the script, then let me know.  I haven't tried it on anything less than f/w 1.05, but I don't see that that would cause any issues.  *However,* if memory serves 'find' in busybox does not work as expected and so I installed coreutils and use that 'find' (my script uses find to locate the files with permissions to be reset).  Coreutils will be either a ffp package or an optware package.  Actually, now I think about it I think even with the busybox in ffp the script works (it just processes all files even if they don't need actually their permissions changing).

lu

Last edited by luusac (2008-11-04 00:28:01)

Offline

 

#3 2008-11-04 12:35:41

Pinkie2003
New member
Registered: 2008-11-03
Posts: 3

Re: Reset Permissions on Volume_1 via Telnet

Hi,

Thanks for your posting. I was watching the read count go up and no reply so I figured I must have asked a really stupid question.

I've telnet'ed into the DNS as I said above and I had tried to run this command but got an error message. I don't remember the exact syntax of the error but it was something like can't access HD_a2, I think I was using all lowercase. I'll try it again tonight and post the exact error message.

cd /mnt/HD_a2

I found it really strange why I would not have access to volume_1 (HD_a2) from the telnet session. I had figured it maybe because I was not logged in as "root" thus I started playing with commands.

Thanks for your help

Ray

Offline

 

#4 2008-11-04 13:23:48

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: Reset Permissions on Volume_1 via Telnet

unless you set up different accounts and were logging in with that then you would have been the root user.  I guess that you are logging straight in without being asked for a username or password - in which case you are logging in as root.  See http://dns323.kood.org/howto:ffp specifically under "telnet" heading.

Offline

 

#5 2008-11-04 21:56:47

Pinkie2003
New member
Registered: 2008-11-03
Posts: 3

Re: Reset Permissions on Volume_1 via Telnet

Was able to access the box and reset the permissions on all the files OK.

My problems are sorted now, thanks very much for your chaps.

Ray

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB