LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-15-2006, 02:03 AM   #1
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
NFS on Slackware, I'm kind of lost at setting it up


Hi All,

I read this tutorial

http://www.linuxquestions.org/linux/...rking/Easy_NFS

I thought I did everything right, but I can't get the installer from SUSE 10.1-GM that a different friend of mine is having me load in for him to see it and work.

Don't go too hard on him, at least he's letting me load some kind of linux on his computer

But I get error's of access denied or directory not available on the SUSE installer.

Does that tutorial apply to us? I do have NFS enabled in my kernel. And I went into package tool and told it to turn on portmap.

I've read that I should really have my linux boxes talking to each other over NFS and not Samba for better "flow" so that's why I'm posting, not just the install SUSE thingie. Worst comes to worst I'll just burn them down and install it. But I really should get a handle on this NFS.

Thanks in advance.

Last edited by Old_Fogie; 06-09-2006 at 11:44 PM.
 
Old 05-15-2006, 02:12 AM   #2
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Hey fogie.

Sorry 'bout the email thing. Working long days right now, going to sleep now.

But check this out:
Link
Helped me out big time
 
Old 05-15-2006, 02:45 AM   #3
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
I was keying in user name and pass on that SUSE installer, there is no option for me to set the uid:gid maybe that is holding me out

So NFS doesn't allow you to authenticate by "username" and "pass" but it also looks at those, nice for security, but a pain for what I'm trying to achieve at the moment.
 
Old 05-15-2006, 07:24 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119
Does that Suse installer want an NFS server where it can find the installation files? And did you setup a NFS server on your Slackware box for that purpose? If so, did you make "/etc/rc.d/rc.nfsd" executable and ran it? I wanted to post the NFS instructions from my wiki but cwwilson721 was ahead of me :-)

NFS does not need and will not ask for usernames/passwords, so the fact that you are asked to enter those, would indicate that (1) Suse asks for passwords every time it gets "access denied" or (2) you try to access a Samba share instead?

Eric
 
Old 05-15-2006, 07:52 AM   #5
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
Hi Eric,

I had them both on, as it was already in a folder that I shared on the network, so I thought it would be ok. Now maybe having it both ways reared it's ugly head on me. Okay the, I'm going to turn off samba and see how it goes. I'll repost back. Thanks for the tip.
 
Old 05-15-2006, 08:25 AM   #6
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
OKAY. It didnt work for SUSE. So for kicks and giggles, knowing that this computer here is already empty of data and all. I threw in the slack-current-iso-disc-1 as made by you Eric, brought up the pcmcia, brought up networking, told slack installer to use install by NFS and what do you know....it works in the same directory with SAMBA and NFS on.

So as usual..Slackware works and SUSE does what ever the heck it wants!! So my NFS does work

Oh well, I think I'll try and do SUSE over a designated guest only samba share argh I hate the thought of it...and if that dont work then I'll burn down the cd's and waste 2 bux as their installer grabs something from all 5 cd's in stead of placing them all on one or two.
 
Old 05-15-2006, 09:44 PM   #7
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
Okay I got SUSE install over network with the SAMBA. their NFS must be messed up on their install cd.

I wrote a little how to for the SUSE'rs here in the forums. 27 views and noone at SUSE forums here even knew how to do this. OMG I'm so glad I don't use SUSE, as this should be common knowledge, it should be on suse's site, and every suse for newb's website that I found.

Just in case you guys get stuck putting SUSE on your friend's pc and don't want to waste your money to burn cd's or your time to watch Yast take all day installing:

http://www.linuxquestions.org/questi...70#post2247070

Thanks again Eric, the fact that you mentioned about the passprompt really pointed me to what was going on here.

Now I'm off to go do NFS here for the house hold.
 
Old 05-16-2006, 12:12 AM   #8
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
leave it to a Slackware user to fix another distro's problem. Good job fogie.

regards,
...drkstr
 
Old 05-16-2006, 04:18 AM   #9
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119
Quote:
Originally Posted by Old_Fogie
Now I'm off to go do NFS here for the house hold.
The thing to keep in mind when you want to use NFS in a LAN, is that on every PC, you will need to create user accounts whose names have the same user-ids or UIDs.
E.g. user "alien" on computer one has a UID of 1000; to make NFS work, a user account "alien" on all other PC's should also have UID 1000. If you fail to setup your user accounts like this, the files that you share over NFS will be "hi-jacked" by other user accounts, so that you can not access your own data when it is stored on another PC where your account has a different UID.

To find out the numerical UID and GID (group-id) for your and other accounts, run
Code:
id
or
Code:
id <username>
This will help you in finding out if everything is OK on the UID front.
Corporate LANs achieve centralization of logon accounts by running NIS or LDAP on their servers (where the user databases are stored) and the desktops (where the authentication takes place). For a home network, NIS could be feasible to setup, LDAP is one bridge too far IMO. If you only have a few PC's, it's best to just make sure you create accounts that have the same UID on each PC.

Eric
 
Old 05-21-2006, 07:15 AM   #10
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
What would happen if I created files a while ago, then let's say my hard drive dies. I restore from an image, and the uid was different and I could not remember what the uid was. Would I lose access to those files, or could I simply get to them as root and pass on the ownership?
 
Old 05-21-2006, 11:34 AM   #11
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Quote:
Originally quoted by: Old_Fogie
What would happen if I created files a while ago, then let's say my hard drive dies. I restore from an image, and the uid was different and I could not remember what the uid was. Would I lose access to those files, or could I simply get to them as root and pass on the ownership?
I was restoring backed up files from an NFS drive and I had users on both computers with same name but different uid. When I mounted the drive and did 'ls -l' it displayed the uid as owner instead of the username which tipped me off to the problem. As a work around, you could just create an account on the client as the same uid as the back up files by viewing the owner of the file (displayed as uid if no user exists by that ID). I'm assuming this image was on the NFS server? I'm not positive, but I think any changing of permissions/ownership for the files must be done on the computer hosting the file.

regards,
...drkstr
 
Old 05-21-2006, 02:10 PM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119Reputation: 8119
Quote:
Originally Posted by Old_Fogie
What would happen if I created files a while ago, then let's say my hard drive dies. I restore from an image, and the uid was different and I could not remember what the uid was. Would I lose access to those files, or could I simply get to them as root and pass on the ownership?
Yes. Simply run (for instance)
Code:
chown -R user_name:group_name /home/username
as root on that computer where the ownership is wrong. In the above example, you will get the names for your account "user_name" by running the command
Code:
id user_name
on that computer.
For my account alien, that command looks like follows:
Code:
$ id alien
uid=9017(alien) gid=100(users) groups=100(users)
Getting the names for "uid" and "gid", I would have to run
Code:
chown -R alien:users /home/alien
if my homedirectory had incorrent ownership, to set it all right.

Eric
 
Old 05-22-2006, 12:27 AM   #13
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
OK thank you guys. I printed that out and put it in my linux notebook over here. I may? be lucky as I've been using Samba, but like everyone advises I need to go NFS. I think I'm going to make sure all my pc's have the same as you suggest, then run an image so if I restore I don't have to do that. But good to know just in case.

By the way, that's brings me to another issue, but on topic of restoring. What do you gent's use to make images of Linux partitions. I've been using Powerquest Drive Image Version 7.0 & 6. It's good, however, I can only compress images of ext3 or ext2. I can't compress a Reiser file system. So I'm not running reiser because of that. Tho from what I read at the reiser site, version 4 is out and they claim it to be better than sliced bread.

Also, Since I was a windows user, I've been using partition magic for years. Now I've been using cfdisk for making and deleting partitions. I really like cfdisk, clean mean and straight to the point. Can that cfdisk make reiser FS, I don't see it in the slackware cfdisk? And can cfdisk resize partitions, and keep data intact? Or should I go with another application for that?
 
Old 05-22-2006, 01:06 AM   #14
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
cfdisk does not create filesytems, just partition types.

cfdisk does not resize. parted is for resizing (it's in /extra on the cd's or the website)
 
Old 05-22-2006, 01:49 AM   #15
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Quote:
Originally quoted by: Old_Fogie
Can that cfdisk make reiser FS, I don't see it in the slackware cfdisk?
I think 'mkfs' is what you are looking for. IE 'mkfs.ext2', 'mkfs.ext3', 'mkfs.reiserfs', etc. You may need to get the reserfs plugin for it if it is not already supported by your system.

regards,
...drkstr
 
  


Reply


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
Setting up an https or other kind of proxy for external computers mysteriouslurker Linux - Networking 1 05-04-2006 09:16 AM
nfs umask setting mvo Linux - Newbie 1 09-16-2005 10:52 PM
Trouble setting up NFS... Fenster Linux - Networking 5 11-13-2004 08:25 PM
Setting up NFS Codegen Linux - Networking 2 10-31-2004 11:30 PM
kind of a programming quesion...kind of not tho jhorvath Programming 2 06-30-2003 11:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:43 PM.

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