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 12-23-2005, 12:08 AM   #1
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
what settings should i make in SWAT ???


Hello all,
i've two machines, one running Slackware 10.0 and the second one running Windows XP professional SP2.

No hub or router. They are connected through simple lan.

Linux machine: has two lan cards, one for Ethernet modem and second for local lan. Shorewall is running on it.

Windows machine: simple accessing internet as Linux machine the Gateway.

i've made changes in /etc/services and /etc/inetd.conf.

now http://localhost:901/ is bringing the swat.

But now i'm not getting the way that what setting should i make in order to share resources of linux machine and windows.
Trying and reading tutorial for last 2-3 days but still nowhere.

Could anyone please help me out ???

regards
 
Old 12-24-2005, 06:22 PM   #2
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 581

Rep: Reputation: 38
Quote:
share resources of linux machine and windows
What do you want to share. Printers, Disks, what. And who owns the resources.

Cheers,
Eddie
 
Old 12-24-2005, 10:51 PM   #3
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by MQMan
What do you want to share. Printers, Disks, what. And who owns the resources.

Cheers,
Eddie
Hi MQMan,
i would like to share disk only.
Now i've moved one step ahead. On windows machine i can see the Linux Machine's folder in "work group" computers.
but when i'm trying to open that its asking for password. Now i'm not getting the way. Should i make the same user on both linux or windows machine having same password or which user its asking for......I tried giving it the "root" and its password, but i didn't worked.
I'm trying and probably will configure it today.
Any suggestions are welcome.

regards
 
Old 12-25-2005, 08:29 AM   #4
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Original Poster
Rep: Reputation: 45
Configured !!!
now i'm being able to access the linux machine from the windows machine.
But facing a problem that not being able to access "/root" from windows machine. The shared part is "/"
and the authentication is given to a user of linux machine.
So i think the problem is with the user account.
I'm cheking.......any suggestion will be appriciated.

Quote:

# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2005/12/25 19:29:16

# Global parameters
[global]
workgroup = MSHOME
server string = Samba Server
log file = /var/log/samba.%m
max log size = 50
dns proxy = No
hosts allow = 192.168.0.2

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[MyRoot]
path = /
valid users = bond
note: bond is the normal user on linux machine. And i've set up it as the client for windows machine using the "password" option in SWAT.

regards
 
Old 12-25-2005, 02:07 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It sounds like you're saying the bond user cannot access the root user's home directory - that's normal behaviour and Samba won't be able to override it. Samba can provide access up to the level provided by the OS but no more. So you also won't be able to do anything via Samba that you can't do as the bond user on the Linux box.
 
Old 12-26-2005, 11:02 AM   #6
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by gilead
It sounds like you're saying the bond user cannot access the root user's home directory - that's normal behaviour and Samba won't be able to override it. Samba can provide access up to the level provided by the OS but no more. So you also won't be able to do anything via Samba that you can't do as the bond user on the Linux box.
Ya u seems to be right.
But how should i overcome this problem ???
Should i make a "smbpasswd" for "root" and then try accessing the 'root' from samba as 'root' the user.
will it work ???

regards
 
Old 12-26-2005, 03:03 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
AFAIK you could run `smbpasswd -a root` and make sure that root is not listed in any 'invalid users' clauses in /etc/samba/smb.conf to give the root user access via samba. It is also possible to use the 'admin users' directive for a share in /etc/samba/smb.conf and have those users able to act as the root user for that share.

Both of these methods have security risks - once you have remote root access to a box, not only are you open to vulnerabilities on the main box, but the vulnerabilities of the remote boxes as well. If you were setting up these boxes in a work environment I'd say DON'T DO THIS!!!! If these are boxes in your home and you decide that the convenience of browsing your Linux box as root from other boxes outweighs the risks I'll just mind my own business... :-)
 
Old 12-26-2005, 08:10 PM   #8
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by gilead
If you were setting up these boxes in a work environment I'd say DON'T DO THIS!!!! If these are boxes in your home and you decide that the convenience of browsing your Linux box as root from other boxes outweighs the risks I'll just mind my own business... :-)
Hello gilead,
I'll definitely give it a try next week, since my friend has taken the laptop for a week.
And regarding the security...both of the systems will we with me only at the same place.
Thanx for being concerned.

regards
 
  


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
How do I make my hdparm settings permanent? zmaint Mandriva 2 11-17-2006 12:44 PM
Make All users have same default settings banner Linux - General 2 06-03-2005 12:44 AM
debian make settings oldstinkyfish Linux - Software 4 11-15-2004 07:19 AM
how to make settings the same for all users tapanga Linux - Software 3 06-01-2004 11:45 AM
can't make SUSE remember IP settings after reboot...#$% roflash Linux - Networking 0 05-27-2002 09:18 AM

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

All times are GMT -5. The time now is 03:28 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