LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   File sharing Open SuSE and XP (https://www.linuxquestions.org/questions/linux-networking-3/file-sharing-open-suse-and-xp-687122/)

odyssey84 11-29-2008 03:47 PM

File sharing Open SuSE and XP
 
Greetings - I'm attempting to share files between a machine running SuSE 10.3 and XP. I had it for a minute, but now the Windows machine can't see anything. I deleted out a few of the defaulted file shares that I did not believe were required (probably were).

In addition, I would also like to be able to be able to read and write to the windows machine (as with the linux machine).

Any ideas as to where to do would be appreciated. I'm not good at command line, so I'm better with the GUI.

Thanks,

Scott

jstephens84 11-30-2008 12:27 AM

Since you did not mention it I am going to assume that you have not yet installed samba. This is the application that not only installs the server to allow for filesharing but also the client that lets linux connect to windows shares. just install samba as a start.

odyssey84 11-30-2008 07:55 PM

Samba installed
 
Sorry - forgot to mention that I had installed it. I've installed SMB4K, which appears to be very cool, however, I'm not sure how to get around it. When I initially started tinkering with this, there were 5 shares that were set up (only one by me). I deleted out three of them as they didn't seem necessary and that may have caused things to go haywire.

Something tells me I need to start from scratch. Can you give me any ideas?

Thanks again,

Scott

jstephens84 11-30-2008 09:18 PM

I have never seen it create 3 shares. Normally it just setups the config file to allow access to users home directories, and printers on the system. What is it not doing exactly? Can you post your smb.conf file just as a baseline.

odyssey84 12-02-2008 03:14 PM

Samba config
 
I used to have read access into the Storage2 file from my Windows machine - now the machine can't see it.

I'd basically like to have read/write access across my network as well as printer support for both machines as well.

Here's the config file you requested. Thanks for looking into this.

# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2008/11/29 20:20:49

[global]
workgroup = GALAXY
interfaces = eth0
map to guest = Bad User
acl compatibility = winnt
server signing = Auto
printcap name = cups
logon path = \\%L\profiles\.msprofile
logon drive = P:
logon home = \\%L\%U\.9xprofile
domain master = No
ldap ssl = No
usershare allow guests = Yes
usershare max shares = 1
printing = cups
cups options = raw
lpq command = %p
restrict anonymous = no
max protocol = NT
idmap gid = 10000-20000
idmap uid = 10000-20000
security = user
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No

[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
guest ok = Yes
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin, root
force group = ntadmin
create mask = 0664
directory mask = 0775

[storage2]
path = /media/sdb2/
inherit acls = yes
case sensitive = no
strict locking = no
msdfs proxy = no
guest ok = yes

[scott_home]
path = /home/scottamead
case sensitive = no
strict locking = no
guest ok = yes
msdfs proxy = no

## Share disabled by YaST
# [netlogon]

jstephens84 12-02-2008 07:52 PM

here is a capture from my smb.conf file pulled from my env.
Code:

[anime]
  path=/usr/local/anime
  comment = Anime
  browseable = yes
  writable = yes
  valid users = jstephens, kstephens
  write list = jstephens, kstephens
  create mask = 0700
  directory mask = 0700

[music]
  path=/usr/local/music
  comment = Music
  browseable = yes
  writable = yes
  valid users = jstephens, kstephens
  write list = jstephens, kstephens
  create mask = 0700
  directory mask = 0700

try changing that on yours and and creating a share group and assigning that share group permissions as group owner to the directories. I am sure your way will work using acls but I have never used acls so I can only give advice based off my current expierence with Samba.


All times are GMT -5. The time now is 01:13 AM.