LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-28-2007, 11:28 PM   #1
wawosz
LQ Newbie
 
Registered: Apr 2003
Location: New Haven, Connecticut
Distribution: Ubuntu 7.04, CentOS, Debian 4.0
Posts: 5

Rep: Reputation: 0
remote NAS folder permissions after fresh install


I am planing to fresh install CentOS over my Debian linux.
In my Debian server I have mounted (as NFS) few remote folders residing on NAS. I have changed file ownership and permissions for these folders to be accessible by user "backup" (from Debian server) only.

My question is: if I will fresh install CentOS and would like to mount NFS folders again, will I be able to access the folders? If I create new user "backup" will it help getting access?

Thanks for help.
 
Old 10-01-2007, 12:53 AM   #2
jakykong
Member
 
Registered: Apr 2006
Location: Washington
Distribution: Debian Gnu/Linux Lenny on AMD64x2 (32-bit mode), an AMD Sempron 64 laptop, debian, 32bit
Posts: 101

Rep: Reputation: 15
NFS deals with permissions the same as for local filesystems. So as long as the user on your new installation has the same UID as the owners of the files you're trying to get at, then yes, they can access the files. Check your /etc/passwd file and use the same UID's and you'll be fine (but I would caution you to use some UID below 1000 but above 100 for your backup user, so that it won't conflict with default system users installed on most systems. Backup is one such user, but it's a different UID and GID in most distributions, so don't depend on it!)

Remember that the user NAMES don't really count. They're just cosmetic. You could have two users "joe" and "job", and they could both have UID 5600, and they'd be the same user as far as the system is concerned. So creating a "backup" user on your new CentOS system doesn't necessarily mean it will have access to the files. It MUST have the same UID.


Good luck to you!
 
Old 10-01-2007, 08:13 PM   #3
wawosz
LQ Newbie
 
Registered: Apr 2003
Location: New Haven, Connecticut
Distribution: Ubuntu 7.04, CentOS, Debian 4.0
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you jakykong,

this is exactly the answer I was expecting.
Thanks again,
Wawosz
 
  


Reply

Tags
nas, permissions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Struggling with permissions on NAS drive rwhitworth SUSE / openSUSE 1 01-06-2007 01:49 PM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 06:23 PM
Fresh Woody default install and now need to remote access the same server debian_dummy Debian 6 05-02-2004 12:29 PM
Remote Mounting? (Mount remote folder on local filesystem) mac_phil Linux - Networking 1 11-15-2003 04:48 PM
Rest All file permissions Like a Fresh Install robinhood1995 Linux - Software 2 04-07-2002 05:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration