Solved

How to write as a root to external storage

Posted on 2010-11-08
5
600 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

757 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

19 Experts available now in Live!

Get 1:1 Help Now