?
Solved

How to write as a root to external storage

Posted on 2010-11-08
5
Medium Priority
?
608 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1500 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
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…
Suggested Courses

770 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