Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Pages: 1 2
Ok guys with this following error message "You require permission from Unix User\root to make changes to this file", I'm rapidly running out of control of the folders in the NAS.
No only can I not delete folders or files in sub folders but now I cant create files like .txt or unrar or unzip into any folders!
I had a similar issue of not being able to delete files mid last year, which I resolved by telneting into the NAS & updating the firmware etc.
But my question is how did this issue recur a year later & how can I prevent it in the future?
Any help much appreciated.)
Offline
I can only suggest a few things to look at.
Telnet in and navigate to one of the folders or files that you are having trouble with. Do an "ls -la" on the directory.
A directory should have the permissions "drwxrwxrwx" and a file "-rwxrwxrwx" in order to add files to the directory or in order to modify a file. If the permissions are anything else, then it is possible that the folders and/or files were created by the root account on the NAS and set the permissions to something like "-rw-r--r--" (644) which is a fairly standard default permissions mode. If you create folders/files with the root account and intend to share them over samba, you need to pay attention to the permissions.
To repair this, please see the chmod command and consider setting the permissions to 0777. Note that there is a recursive option that will let you apply the change to a tree of files. Be careful.
It is also possible that your samba isn't configured right. I can't explain why it may have suddenly changed, but it is worth looking at. You might inspect your /etc/samba/smb.conf file or post it here and see if there is anything wrong with it. You'll want to make sure that the "valid users" and "read only" settings make sense for the share that you are using.
As an aside, note that the smb.conf should contain:
create mask = 0777
directory mask = 0777
force create mode = 0777
force directory mode = 0777
These basically say that folders and files created by a samba client (e.g., a PC using the DNS-323 shares) are going to have their permissions set to "drwxrwxrwx" and "-rwxrwxrwx", as I alluded to in the first part of this post.
Last edited by karlrado (2010-03-14 20:37:58)
Offline
I'll also extend that response a bit by saying that whenever you copy files via SMB/CIFS to the NAS, if you are authenticating as a particular user, the files being copied over will have that username (and group if you made one) assigned as the owner of the file(s)... including any directories you make.
If you then delete that user, create a new one and map them to the share, the previous files you had copied over are still owned by that old user (well, actually by a rogue user/group id). This may also cause access problems as you will no longer be the owner of the file, and may not be able to do stuff to it (if it's a directory this may include not being able to write or delete files within it, or even list the files in there).
Offline
karlrado wrote:
I can only suggest a few things to look at.
Telnet in and navigate to one of the folders or files that you are having trouble with. Do an "ls -la" on the directory.
Guyz I suck. I'm trying to run fun_plug in the root of Volume_1 after a reboot but it's not unzipping to make the fft directory like the readme says it should after the DNS 323 reboot,
" Copy fun_plug and fun_plug.tgz to Volume 1 and reboot. If
successful, the fun_plug.tgz file is unpacked (ffp directory) and
deleted. A telnet server is started."
Because I can't do the above I can't yet follow your instructions to telnet in with putty. If I remember rightly last year I did't have this trouble using putty. Could firmware 1.8 be preventing fun_plug unpacking? Help, I need suggestions to get round this hurdle, please.
Offline
j.smith wrote:
I'll also extend that response a bit by saying that whenever you copy files via SMB/CIFS to the NAS, if you are authenticating as a particular user, the files being copied over will have that username (and group if you made one) assigned as the owner of the file(s)... including any directories you make.
If you then delete that user, create a new one and map them to the share, the previous files you had copied over are still owned by that old user (well, actually by a rogue user/group id). This may also cause access problems as you will no longer be the owner of the file, and may not be able to do stuff to it (if it's a directory this may include not being able to write or delete files within it, or even list the files in there).
Makes sense as all I have done that I can think may have caused this issue is upgraded from Vista to Win7 for this user, I of 3 on a network home workgroup. I tried to use the same password but had to change the username to comply with my self enpossed naming convention so that must have broke the permissions?
It's unfortunate that I was forced to upgrade to Win7 due to corrupted system data but now that I know I'll try and avoid it with this file structure on the Dlink. I wish I was using NTFS file servers , its not half as confusing.
Cheers
Offline
If you had to change the user name on the Win7 install, I think you'd have to add the new user name to the DNS-323 user list and change the share accordingly. I didn't see a way to EDIT the user name on the DNS-323, so it is likely that you had to delete the old one and create the new one. As j.smith said, this will mess up your permissions.
To take it further, login to the DNS-323 via telnet or whatever. Run the id command:
id <newUserName>
You might see something like:
uid=503(newUserName) gid=703 groups=703
Then go to the files that have the wrong permissions and do an ls -l. You probably see something like:
drwxrwxrwx 2 502 703 4096 Dec 24 19:40 someFolder
or
drwxrwxrwx 2 oldUserName 703 4096 Dec 24 19:40 someFolder
If you deleted the oldUserName, and the old user had a UID of 502, you'll see 502 for the file ownership.
You could then do:
chown newUserName someFolder
and so on for the rest of the files to fix it up.
Not completely sure if this is your deal, but it is worth considering.
Offline
Okay guys this is getting ridiculous. I don't want to have to learn unix programming just to be able to copy and paste couple of files on the root of my NAS.
It turns out that even saving the fun_plug and fun_plug.tgz to Volume 1 automatically changes the fun_plug into the incorrect ".TXT" instead of the correct format, "unix file format (LF for newline) and not in Windows (CR LF for newline).One suggested editor for Windows is UltraEdit or Notepad++ which let you save the file in both formats."
So I downloaded Notepad++, opened the fun_plug file in a root of my Volume 1 directory and went to "save as" for but there was no option in the list of files that resembles the (LF for newline) option? Anyone care to point me in the right direction as to the .extension I pick?
I like to tinker and learn as I'm going along but this is taking the biscuit. All I originally wanted to do was to delete folders and unzip others, now i find myself in text editors etc 4 days down the line! Am I wrong or is this NAS a home not business NAS? How are noobs with less knowledge & time than me suppose to handle this issue if the NAS user browser interface GUI doesn't have the program to retrospectively allow permissions to be changed easily without telnet'ing, FTP'ing etc?
Anyway now that I've got that off my chest any help from which file expansion that I should use in Notepad ++ would be greatly appreciated.
Cheers
Offline
that is wonderful. You have got to love apps trying to help you.
1. Rename them to .bin before copy
2. copy file
3. Rename back to whater it should be
Hopefully that will fool your helpful application.
Offline
Sorry bjby no joy,
when I reboot the fft directory isn't created in the root of Volume_1. I now think I'm going to have to pay $40 for UltraEdit as that seems to be the sw that does it on the fly,
"Hi all!
After several hours of pulling my hair I finally figured it out and thought I'd post a little tip.
Create the fun_plug file using UltraEdit and save it directly to the DSM-G600 using the "File | FTP/Telnet | Save as to ftp..." option, permissions can be set here aswell.
Works like a charm. Telnet is up aswell thanks to UltraEdit.
The Permissions won't stick using a ordinary ftp client." http://dns323.kood.org/forum/viewtopic.php?id=13
Any suggestions before I buy this use once sw will be much apppreciated.
Offline
Filezilla / Notepad++ combination? Both are free and I know that Filezilla doesn't wonk around with filetypes and Notepad++ will respect Unix line endings.
This may have been the way I set up my machine initially awhile ago, but I'm not in a place where I can try it right now.
Offline
This is truely ridiculus, anyhow.
Regarding notepad++ you are looking for a meny with options like
Unix -> Win
MAc -> unix
...
etc
Maybe under edit, not sure, but cant be that hard to find, dont have a installed copy infront of me right now.
Of course end result should be unix.
I truely wish you good luck with this.
Offline
Thought about another thing, this might also be a file permission issue. In fact it is likely (the .bin trick should have worked). Possibly the fun_plug file isnt set as executable.
So how can you tell?
I think ftp filezilla will show you filepermissions and also allow to change them.
once again good luck.
Offline
bjby wrote:
Thought about another thing, this might also be a file permission issue. In fact it is likely (the .bin trick should have worked). Possibly the fun_plug file isnt set as executable.
So how can you tell?
I think ftp filezilla will show you filepermissions and also allow to change them.
once again good luck.
Nice one bjby, I'm in via FileZila!
Still can't change the permissions on the folders I want to delete to 777? I get the response: "550 could not change perms on...(file name:) Operation not permitted", now I'm stuck again?
HELP PLEASE.
Offline
Thanks a bearing with me,bjby, both files seem to have full permissions, 777 as you can see them image is below from FileZilla?
Does this help in determining why I can get fun_plug to run on reboot?
I am putting the two files in the root of Volume_1 as instructed so other than a issue with the files not being in the right format [Unix file has LF at the end of line, not CR+LF] I'm clueless, help please?
Last edited by optical10 (2010-03-17 18:31:49)
Offline
Wait I think this thread may have the answer, http://dns323.kood.org/forum/viewtopic.php?id=4103
I have two 750 GB HHD's in raid one config, could it be that they where in the wrong sequence (2 then 1 instead of 1 then 2) from day one? So that the fun_plug needs to go on the the root Volume_2 and not Volume_1? If so how do I explore to that 2nd volume_2 as I do not see it on my network due to the raid?
Cheers
Last edited by optical10 (2010-03-17 18:46:41)
Offline
You need to rename fun_plug.txt to fun_plug on the 323. You should be able to use Filezilla to do that. If you can't for some reason, copy it again from your source machine with Filezilla. As I said in my post that first mentioned Filezilla in this thread, Filezilla won't do things like rename files to .txt on you. It DOES need to be executable, so the 777 is fine.
The fun_plug.tgz file does not need to be 777, but it is ok if it is.
If it still does not work, the fun_plug.tqz file may be damaged. I would try copying it over to the 323 root again with Filezilla, coaxing FZ to do a binary copy if needed. It probably will anyway, and it will tell you the copy mode as it is copying.
In short, I would just copy both files over again with FZ and make sure funplug is 777.
Offline
optical10 wrote:
Wait I think this thread may have the answer, http://dns323.kood.org/forum/viewtopic.php?id=4103
I have two 750 GB HHD's in raid one config, could it be that they where in the wrong sequence (2 then 1 instead of 1 then 2) from day one? So that the fun_plug needs to go on the the root Volume_2 and not Volume_1? If so how do I explore to that 2nd volume_2 as I do not see it on my network due to the raid?
Cheers
In RAID 1, I don't think that there would be a Volume_2, right? The two physical disks are mirrored, with the data duplicated on each drive, forming one logical volume.
Offline
karlrado wrote:
You need to rename fun_plug.txt to fun_plug on the 323. You should be able to use Filezilla to do that. If you can't for some reason, copy it again from your source machine with Filezilla. As I said in my post that first mentioned Filezilla in this thread, Filezilla won't do things like rename files to .txt on you. It DOES need to be executable, so the 777 is fine.
The fun_plug.tgz file does not need to be 777, but it is ok if it is.
If it still does not work, the fun_plug.tqz file may be damaged. I would try copying it over to the 323 root again with Filezilla, coaxing FZ to do a binary copy if needed. It probably will anyway, and it will tell you the copy mode as it is copying.
In short, I would just copy both files over again with FZ and make sure funplug is 777.
OK GUYZ I'M IN using Putty, Thanks karlrado, bjby & j.smith, I know this will help others also.
So it turns out that renaming the fun_plug from fun_plug.txt to just fun_plug via FileZilla as you suggested karlrado did the trick, on the next reboot fun plug was unpacked..
As you can see on the print screen below I'm rusty on my MS-DOS commands, should I use MS-DOS commands or do I need to learn UNIX/LINUX commands to cd change directories etc & follow your directions to "CHANGE FILES & FOLDERS PERMISSIONS"?
Cheers
Last edited by optical10 (2010-03-17 20:49:44)
Offline
OK, I answered my own question to use Linux commands. Now I need to drill down to my Volume~_1, BT folders causing all the permissions issues.
Can you point me in the right direction so I can cutdown on the cd exe's? Here is the list of available directories I can see:
bin, ffp, lost+found, sbin, var, default, home, mnt, sys, web, dev, image.cfs, proc, tmp, welcome.msg, etc, lib, root, usr.
Cheers
Offline
Cool. Glad you got in.
Now I need to drill down to my Volume~_1, BT folders causing all the permissions issues.
Let's start here. If I am not mistaken, all the files under BT should already be set so anyone can read/write them.
First, the Unix file perms for all files under BT should be 777. At least, that is what I see for the files I have in there now.
Now that you are in the shell, you can confirm this by typing (from any current directory):
ls -lR /mnt/HD_a2/BT
This will list all the files and folders under BT along with their permissions. 777 will look like -rwxrwxrwx for files and drwxrwxrwx for folders. Please take a look and see if there are any that are not. If some need changing, you can type
chmod -R 777 /mnt/HD_a2/BT
which will recursively set the perms to 777 for all files and folders under BT. Or you can apply the chmod command to smaller sets of files. Don't get crazy and run this command over the entire disk - you'll mess things up.
Second, the 323 config webpage should have a BT share defined by default in the NETWORK ACCESS panel. Mine has a share:
Share = BT
Path = Volume_1/BT
User/Group = ALL
R/W = red check mark
And it looks like you can't edit this share, so you should have it too. It looks like any user should then be able to read/write the BT files.
Since BT files are created by the stock bittorrent software and the share should already be set up for you, I'm having a hard time figuring out how the BT files became inaccessible.
If you don't have this share, then perhaps you disabled the BT support somehow and the firmware is not creating the share, leaving the files marooned. You could then recreate a share that is R/W for ALL.
Anyway, probing around as mentioned here may provide some clue.
Offline
karlrado wrote:
[ls -lR /mnt/HD_a2/BT
Oopps, is my typing on this command right,
Is -lR /mnt/HD_a2/BT
I get "ls: invalid option -- /"
Offline
There is no space between the - and the option(s).
ls -lR /mnt/HD_a2/BT
ls is the command - similar to DIR in DOS
-lR are the options:
l - long format (more info, including perms)
R - recursive
There is a "getting started with linux" thread in this forum:
http://dns323.kood.org/forum/viewtopic.php?id=2648
Offline
One. OK, I'm in BT folder and there are lots -rw-r--r-- & drwxr-xr-x. Ran chmod -R 777 /mnt/HD_a2/BT only one file input/output error which \i can't delete? I did notice that incomplete had six or seven files that repeated completed files which when I deleted and ran ls -lR /mnt/HD_a2/BT seemed to correct alot of the permissions. Maybe when I've rebooted the torrents hadn't re-checked/restarted properlly so if screwed-up the permissions? I also had folders in complete named "--Delete--", "--filles to burn--" etc, this may have confused 323?
Second. I haven't changed any thing in BT, Network Access Settings since day one, here is a screen grab, so I clueless as to why things have changed?
I'll do some more download tests of the same files that wouldn't delete & report back but in the mean time thanks a million as I didn't loss any files, and learnt alot, bonus.
Last edited by optical10 (2010-03-17 23:38:31)
Offline
Pages: 1 2