1754811 Members
3782 Online
108825 Solutions
New Discussion юеВ

Re: Samba

 
SOLVED
Go to solution
Jayraj
Frequent Advisor

Samba

Hi,

from windows xp I want to map to unix server to \\172.19.72.22/home/swaraj

But I am getting error like
The network path \\172.19.72.22/home/swaraj is not found
Please help me how to reach there..
8 REPLIES 8
Ganesan R
Honored Contributor

Re: Samba

Hi Swaraj,

You need samba server to be running on unix if unix filesystem should be shared on windows system.

Likewise samba client needs to be running on unix if windows filesystem should be mounted on unix server.
Best wishes,

Ganesh.
unixguy_1
Regular Advisor

Re: Samba


Hi Swaraj,

Pls check that user is having writes.

check and revert back.

Regards,
Unixguy.

eric roseme
Respected Contributor

Re: Samba

Assuming you have your Samba server correctly configured, then your mapping syntax is wrong - your slashes are going the wrong way. Here's the right way:

\\172.19.72.22\home\swaraj

Except, if this is a [homes] share, then you do not include the home:

\\172.19.72.22\swaraj

Eric
Jayraj
Frequent Advisor

Re: Samba

Hi,
I have added the user entry in smb.conf as

[home]
comment = Home Directory
path = /home/swaraj
valid users = swaraj
writable = yes
However when I execute smbpasswd -a swaraj,sh: smbpasswd: not found.

This user is the real user in the server, now I want him as the samba user .. please help me.
Steven E. Protter
Exalted Contributor
Solution

Re: Samba

Shalom,

This problem is commonly a permissions problem.

[home]
comment = Home Directory
path = /home/swaraj
valid users = swaraj
writable = yes
However when I execute smbpasswd -a swaraj,sh: smbpasswd: not found.

This user is the real user in the server, now I want him as the samba user .. please help me.

There needs to be a user on the system called swaraj

smbpasswd is in the /opt filesystem and you need to run smbpasswd -a (with full path) to set up the samba user. Then XP will be able to connect.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jayraj
Frequent Advisor

Re: Samba

Hi,
I have used /opt/samba/bin/smbpasswd -a swaraj.now I have added the samba user successfully.

I have used /etc/init.d/samba restart to restart the samba service,
But I am getting error like sh: /etc/init.d/samba: not found.

what could be the reason..
OldSchool
Honored Contributor

Re: Samba

"But I am getting error like sh: /etc/init.d/samba: not found."

EXACTLY what it says, it can't find the named file.

It probably is "/sbin/init.d/samba"

Karandeep Malik
New Member

Re: Samba

I am not sure if you have samba installed. Please go for sudo apt-get install samba smbfs
to install samba and then try