LinuxQuestions.org
Help answer threads with 0 replies.
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 07-13-2004, 10:47 AM   #1
geeb777
LQ Newbie
 
Registered: Jun 2004
Location: In the 'bush', NSW, Australia
Distribution: SuSE 9.1
Posts: 6

Rep: Reputation: 0
Unhappy Suse 9.1 Pro as server for windows + linux home network


Bitten off more than I can chew this time. Successfully dual booted suse 9.1 and xp. Suse can see other boxes on network (xp and 98 - although they can't talk to suse - login issues) and talk to internet. Decided to try next step (or leap!). Set up suse (alone - not dual boot) on an oldie as a server/internet gateway (dial up) with other boxes to talk to/through it. Samba server configured. Host names configured but would rather use DHCP and DNS if possible so system is flexible as boxes come and go. How should DHCP/DNS servers be configured? How can login issues from other boxes trying to see a 3rd partition on server box be overcome? There must be HOW TOs around the place on these issues. Any suggestions?
 
Old 07-13-2004, 10:59 AM   #2
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
If its only two more boxes, set ip to static, no need of dhcp.
Regarding the server, set the "enable ip forward", in yast2 network configuration.
 
Old 07-15-2004, 11:19 AM   #3
geeb777
LQ Newbie
 
Registered: Jun 2004
Location: In the 'bush', NSW, Australia
Distribution: SuSE 9.1
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks Bruno

Static ips assigned alround. Linux box set as gateway. Xp can see linux box but not vice versa (xps included as hosts in linux) but can't see internet from linux box (with and without firewall installed). Proxy also tried in internet options (set at linux ip, port 3128). Fat32 partition in linux box can be seen by all but not written to (mounted at /local). Any clues? Thanks
 
Old 07-15-2004, 01:19 PM   #4
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
Samba configuration still tricks me a bit. The few successes i had were by means of webmin, on localhost:901, if I recall well.

The Ip forward ins't working? Can win ping suse? Can win ping any machine on the internet? Try to ping google: 64.233.161.99. First just by ip, an then by name. So, we can figure if you lack a dns server.
In yast2, go to Network services > routing. Tick the option "enable ip forward".

*********

Fat32 partition in linux box can be seen by all but not written to (mounted at /local). Any clues? Thanks

Mounted read-only? Post here the output of "cat /etc/fstab" so we can work on it.
 
Old 07-16-2004, 07:28 AM   #5
geeb777
LQ Newbie
 
Registered: Jun 2004
Location: In the 'bush', NSW, Australia
Distribution: SuSE 9.1
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks again Bruno.

Boxes ping each other - both ways, but win can't ping google though linux internet connection. Tried with firewall on and off lon linux. Ip forwarding is enabled - did that after your first post. Did notice when I booted linux earlier that there was an error message regarding the firewall, samba and port 139 (evidently should be open or something - all goes by to quick to get the exact message).

fat32 partition - cat /etc/fstab output -
/dev/hda3 /local vfat user, iocharset=koi8-r, codepage=950 0 0

/root and a number of other folders such as the docs on wine are locked even when logged in as root. suse on my dual boot is the same. Should this be the case? Any way around it?
 
Old 07-16-2004, 12:46 PM   #6
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
Boxes ping each other - both ways, but win can't ping google though linux internet connection. Tried with firewall on and off lon linux. Ip forwarding is enabled - did that after your first post. Did notice when I booted linux earlier that there was an error message regarding the firewall, samba and port 139 (evidently should be open or something - all goes by to quick to get the exact message).

I had this samba message, also. But I disabled samba, as I use now only ssh. Samba is quite tricky, I think. Its configuration still eludes me. Try to google for "ip masquerading made easy". Also in www.tldp.org there are good tutorials.


fat32 partition - cat /etc/fstab output -
/dev/hda3 /local vfat user, iocharset=koi8-r, codepage=950 0 0


Is koi-8 correct? SuSE defaulted to this? Isn't it for russian chars? I guess you have to play around with iocharset and codepage (maybe 850) variables, to fix this. Do a "man fstab" to see the options you have, and take my own as reference. Every partition mounts ok, with user perms. Try to check if the mount point have the proper permissions set, sometimes the fstab and partitions are ok, but the mount points are such as rw------, so only the owner (root) can get inside.


/root and a number of other folders such as the docs on wine are locked even when logged in as root. suse on my dual boot is the same. Should this be the case? Any way around it?

Most of my fixing permissions, I added my regular user bruno to the "users" group and changed permissions tobe owned by root/users with write permissions to the group.
This is my "mount" output:

/dev/hda2 on / type reiserfs (rw,acl,user_xattr)
proc on /proc type proc (rw)
tmpfs on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/hda6 on /backup1 type reiserfs (rw)
/dev/hdb2 on /backup2 type reiserfs (rw)
/dev/hdb3 on /backup3 type reiserfs (rw)
/dev/hdb5 on /backup4 type reiserfs (rw)
/dev/hda5 on /home type reiserfs (rw)
/dev/hda1 on /usr type reiserfs (rw,acl,user_xattr)
/dev/hdd on /media/cdrecorder type subfs (ro,nosuid,nodev,fs=cdfss,procuid,iocharset=iso-8859-1)
/dev/hdc on /media/dvd type subfs (ro,nosuid,nodev,fs=cdfss,procuid,iocharset=iso-8859-1)
/dev/fd0 on /media/floppy type subfs (rw,nosuid,nodev,sync,fs=floppyfss,procuid)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
usbfs on /proc/bus/usb type usbfs (rw)

And:

cat /etc/fstab
/dev/hda2 / reiserfs acl,user_xattr 1 1
/dev/hda6 /backup1 reiserfs defaults 1 2
/dev/hdb2 /backup2 reiserfs defaults 1 2
/dev/hdb3 /backup3 reiserfs defaults 1 2
/dev/hdb5 /backup4 reiserfs defaults 1 2
/dev/hda5 /home reiserfs defaults 1 2
/dev/hda1 /usr reiserfs acl,user_xattr 1 2
/dev/hdb1 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
/dev/cdrecorder /media/cdrecorder subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=iso-8859-1 0 0
/dev/dvd /media/dvd subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=iso-8859-1 0 0
/dev/fd0 /media/floppy subfs fs=floppyfss,procuid,nodev,nosuid,sync 0 0
#/dev/hdb6 /backup5 reiserfs acl,user_xattr 1 2
 
Old 07-17-2004, 08:28 AM   #7
geeb777
LQ Newbie
 
Registered: Jun 2004
Location: In the 'bush', NSW, Australia
Distribution: SuSE 9.1
Posts: 6

Original Poster
Rep: Reputation: 0
Not much time to spent tonight but did do a fresh install. Auto found hda3 which now has fstab output of
/dev/hda3 /windows/C vfat users,gid=users,umask=0002, iocharset=utf8 0 0 Linux will now write to it. Win boxes could see it but wanted a usr/password to access - nothing worked.

Tried not to get too fancy in reconfiguring it. It found other win boxes once host names and ips had been installed. Will also find internet through another box. Will worry about using this as the gateway for another time. Trying to keep it as simple as possible. Enabled samba again (haven't had time to check out your alternative yet) which gave win access to hda3. This has since stopped working for who knows why - win can still see linux back can't gain access. Linux can't see win although interent still works. Ahhh......
 
Old 07-17-2004, 08:43 AM   #8
geeb777
LQ Newbie
 
Registered: Jun 2004
Location: In the 'bush', NSW, Australia
Distribution: SuSE 9.1
Posts: 6

Original Poster
Rep: Reputation: 0
Just realised I disabled samba. Enabled it and win now sees hda3 but wants usr/password - nothing works. Shared home directories etc but permissions for hda3 (windows/C) can't be changed even when logged in as root (see below for further root permission problems).

Lin still comes up with error message when trying to see workgroup.

Still issues viewing root plus other folders even when logged in as root. Added root to my own login list in User and Group Administration but no difference.
 
Old 07-17-2004, 12:04 PM   #9
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
New winXP computer here! Went to yast2 and enabled both samba client and samba server. Lin can see win on neighbour network, but vice versa won't work. Lin can even enter a shared dir and save data in it (no passwd needed). I don't know what I did, but it worked.
My guess is samba client is working, but not samba server.
Here's my smb.conf, if it helps.

bruno@frank:/etc/samba> cat smb.conf
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SuSE
# Date: 2004-04-06
[global]
workgroup = LINUX
interfaces = 127.0.0.1 eth0
bind interfaces only = true
printing = cups
printcap name = cups
printer admin = @ntadmin, root, administrator
map to guest = Bad User
security = user
encrypt passwords = yes
server string = frank
netbios name = frank
add machine script =
domain master = false
domain logons = no
local master = no
preferred master = auto
ldap suffix = dc=example,dc=com
passdb backend = smbpasswd
load printers = no

[homes]
comment = Home Directories
valid users = %S
browseable = no
read only = No
guest ok = no
printable = no
[users]
comment = All users
path = /home
writeable = Yes
inherit permissions = Yes
veto files = /aquota.user/groups/shares/
browseable = yes
guest ok = no
printable = no
[groups]
comment = All groups
path = /home/groups
writeable = Yes
inherit permissions = Yes
browseable = yes
guest ok = no
printable = no
;; [pdf]
;; comment = PDF creator
;; path = /var/tmp
;; printable = yes
;; print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z
;; create mask = 0600
;; browseable = yes
;; guest ok = no
;; [printers]
;; comment = All Printers
;; path = /var/tmp
;; printable = yes
;; create mask = 0600
;; browseable = no
;; guest ok = no
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
browseable = yes
guest ok = no
printable = no




Start a new thread just on samba issue. You get better exposure.
 
  


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
create a home Network Laptop Linux and an Windows PC Jose Santos Linux - Newbie 13 06-22-2005 11:55 AM
SuSE 9.1 Pro or SUSE LINUX Enterprise Server 9? Mega Man X Linux - Distributions 11 09-24-2004 11:51 AM
Home Networking - Linux/Windows as a DHCP Server jtwJGuevara Linux - Networking 3 03-13-2004 07:19 PM
How to setup a Network printer with Linux SUSE 9.0 Pro v8n3t Linux - Networking 0 03-04-2004 05:22 PM
Home network Linux Server and MS XP Laptops? MeSo Linux - Newbie 1 02-15-2004 01:53 PM


All times are GMT -5. The time now is 02:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration