Legit Storage Reviews
How To Setup a Home NAS Server - QNAP TS-439 Pro Turbo
|Manufacturer:||QNAP Systems, Inc.|
|Product:||TS-439 Pro Turbo NAS|
|Date:||Wed, Apr 08, 2009 - 12:00 AM|
|Written By:||Legit Staff|
Mixed Operating System Issues
One of the key features of the QNAP TS-439 is its ability to operate in a mixed operating system environment so that you can access your data from any platform. If you happen to be accessing the NAS from only Mac and/or Windows machines, you should have no problems. However, if you’ll be using a Linux machine in addition to Mac or Windows, you’ll notice some problems with file permissions.
When you access the NAS from Mac or Windows, files are created using your user account that you set up on the NAS. If you are just logging in as Admin, they are being created with UID 0, which is root on any Linux box. So, when you mount the NAS via NFS on your Linux box, none of your files belong to you. This can be problematic if you want to move, delete, or edit any of those files. Moreover, if you manage to create files from Linux, they may appear locked when you mount the shares from Mac or Windows machines. This is clearly not the situation you want to be in.
Fixing this problem is pretty easy, it’s easiest if you do it before you create any shares or copy any data to your new NAS. After you’ve got the NAS configured with drives and have created your user accounts, enable SSH Access (or telnet of you’re trusting). SSH and telnet access are found under Admin > System Tools > Remote Login; just check the Allow box. Now, you can use any SSH client to connect to your NAS as Admin (SSH and telnet are usable only by Admin). Anyhow, log into your Linux box and have a look at your /etc/passwd file to determine your UID (the number associated with your username). You can then login to the NAS and change your UID by editing /etc/passwd on the NAS. Be careful to save a backup and change only your user’s UID. Do not change the UID for Admin, who knows what kind of trouble that would cause.
Once you’ve ensured that your UID(s) match on your Linux system(s) and on the NAS, you’re in good shape. Now you can start creating shares and giving your users permissions. If you’ve already created users and shares, you’ll need to change the ownership of those file and directories using chown. That is beyond the scope of this article; I’m sure that you can ask your favorite Linux guru or Google.
Next Page - Tips and Tricks
Page 1 - Why do I need a NAS?
Page 2 - Setting up the QNAP TS-439
Page 3 - Creating User Accounts and Shares
Page 4 - Putting the (S)torage in NAS
Page 5 - Transfer Benchmarks
Page 6 - Torrents, Twonky, and Printers (Oh My)
Page 7 - Keeping Your Data Safe
Page 8 - It’s not Easy Being Green
Page 9 - Environmental Considerations
Page 10 - Mixed Operating System Issues
Page 11 - Tips and Tricks
Page 12 - Final Thoughts & Conclusions