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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-28-2007, 11: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.
|
|
|
10-01-2007, 12:53 AM
|
#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, 08: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
|
|
|
All times are GMT -5. The time now is 06:12 AM.
|
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
|
|