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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
09-28-2007, 10:28 PM
|
#1
|
|
LQ Newbie
Registered: Apr 2003
Location: New Haven, Connecticut
Distribution: Ubuntu 7.04, CentOS, Debian 4.0
Posts: 5
Rep:
|
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.
|
|
|
|
09-30-2007, 11:53 PM
|
#2
|
|
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:
|
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!
|
|
|
|
10-01-2007, 07:13 PM
|
#3
|
|
LQ Newbie
Registered: Apr 2003
Location: New Haven, Connecticut
Distribution: Ubuntu 7.04, CentOS, Debian 4.0
Posts: 5
Original Poster
Rep:
|
Thank you jakykong,
this is exactly the answer I was expecting.
Thanks again,
Wawosz
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:38 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|