LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Ubuntu server help/Samba (https://www.linuxquestions.org/questions/linux-server-73/ubuntu-server-help-samba-572412/)

MSCTC 07-26-2007 08:32 AM

Ubuntu server help/Samba
 
:Pengy: I have Ubuntu Server installed with Samba. I'm trying to create a share so Windows XP machines can access and put files in it, so i can continue to install Joomla. I can see and write inside the Home Directory and it has a bunch of .bash files.

I cannot write or access the 'Share' folder I made, i can only see it from the XP box. Windows tells me "No network provider accepted the given network path" error , "you might not have permissions to use this network resource" That is the folder i want to use for file sharing. My username for the box is tc.

I edited the smb.conf like so:

Code:

  [homes]
  comment = Home Directories
  browseable = yes
  read only = no


Code:

[Share]
  comment = For any user to see
  writable = yes
  valid users = tc
  write list = tc
  path = /home/username/mnt/share

This is my Global config:
Code:

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
  workgroup = MSHOME

# server string is the equivalent of the NT Description field
  server string = %h server (Samba, Ubuntu)

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
;  wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;  wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
  dns proxy = no

# What naming service and in what order should we use to resolve host names
# to IP addresses
;  name resolve order = lmhosts host wins bcast

Thank you for reading!

almatic 07-26-2007 09:02 AM

you probably need to share the whole path. Try adding this:

[username]
path = /home/username
browsable = no

[mnt]
path = /home/username/mnt
browsable = no

do you see 'share' then ?

karelvdm 07-26-2007 09:03 AM

Hi,

Quote:

Originally Posted by MSCTC
[Share]
comment = For any user to see
writable = yes
valid users = tc
write list = tc
path = /home/username/mnt/share

Is it the username of a user or an actual directory /home/username/mnt/share.

Here's my Common share directory
Code:

[datashare]
  browsable = yes
  comment =
  inherit permissions = yes
  path = /home/data/
  read only = no
  writeable = yes
  browseable = yes
  guest ok = no
  printable = no


MSCTC 07-26-2007 09:15 AM

Quote:

Originally Posted by karelvdm
Hi,



Is it the username of a user or an actual directory /home/username/mnt/share.

Here's my Common share directory
Code:

[datashare]
  browsable = yes
  comment =
  inherit permissions = yes
  path = /home/data/
  read only = no
  writeable = yes
  browseable = yes
  guest ok = no
  printable = no



Ok that worked better, i can now access the 'share' and write to it. I have one question about that. I now see 2 folders a 'Share' & 'tc' folder and they both have the same exact files inside, when i copy a file into one it shows on other. (See screen shot below). Is that normal?

http://img517.imageshack.us/img517/3...arelinxlv8.jpg


Thank you for the great responses!

MSCTC 07-26-2007 09:52 AM

Should I post questions here about http: browsing index files from Joomla folder or make new thread?

MSCTC 07-27-2007 08:12 AM

I now see 2 folders a 'Share' & 'tc' folder and they both have the same exact files inside, when i copy a file into one it shows on other. (See screen shot below). Is that normal? :scratch:

Peter_APIIT 07-30-2007 04:03 AM

I cannot access the 127.0.0.1:631 any more. I don't know why.

Thanks for your help.

A billion thanks to you.


All times are GMT -5. The time now is 10:55 AM.