Solved

How to write as a root to external storage

Posted on 2010-11-08
5
601 Views
Last Modified: 2012-05-10
Hello Everyone,

Let me explain my situation. I have bought WD Storage 2TB, and i created user in it to connect from another server,

I have mounted it to my server,
//0.0.0.0/external /backup cifs username=xxx,password=xxxx 0 0  there is no problem..

The problem is files owner is not root, different numbers like 98 1000 or something..

How can i mount this external disk to write in it as a root. Because i need to write in it as a root.

Is there any suggestion?


0
Comment
Question by:ArneIT
  • 3
  • 2
5 Comments
 
LVL 10

Expert Comment

by:TRW-Consulting
ID: 34090172
Where you have "username=xxx,password=xxxx", change that to "username=xxx,password=xxxx,uid=0,gid=0"

The problem with CIFS is that it's being logged into as a certain user (username/password), so all file/directory ownerships are actually by that username.  Adding the "uid=0,gid=0" option makes it appear as if the owner/group is root/root.

It would be much better if they had the option of using NFS, then you could have real multi-user ownership instead of the limits SMB puts on it.
0
 

Author Comment

by:ArneIT
ID: 34090813
Hi TRW-Consulting,

Thanks for your help, and yes i can do that with NFS but how?
0
 

Author Comment

by:ArneIT
ID: 34090998
I have tried to mount with NFS,
0.0.0.0:/shares/SRV9         /backup                 nfs     defaults        0 0

It didnt worked out, getting this error.

mount: 95.0.197.6:/shares/SRV9 failed, reason given by server: Permission denied

Can you help me what should i do on WD Storage Side?

thanks
0
 
LVL 10

Accepted Solution

by:
TRW-Consulting earned 500 total points
ID: 34098439
Setting up NFS is a bit more complicated than SMB, and without seeing the administrative interface pages I couldn't say how your particular system does it.  But a general overview is that users/groups have to be set up, and shared locations defined as to what external sites have access to them and with what permissions.

If this is for personal use and not going to be accessed by more than 2 or 3 people/systems, I wouldn't bother with NFS and just use cifs (SMB).
0
 

Author Closing Comment

by:ArneIT
ID: 34118657
thanks
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll explain how to setup a Plex Media Server (https://plex.tv/) on a Redhat (Centos) 7 based NAS with screenshots to help those looking for assistance.  What is Plex? If you aren't familiar with Plex, it’s a DLNA media serv…
VM backups can be lost due to a number of reasons: accidental backup deletion, backup file corruption, disk failure, lost or stolen hardware, malicious attack, or due to some other undesired and unpredicted event. Thus, having more than one copy of …
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now