Computing.Net > Forums > Linux > unable acces the samba from win

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

unable acces the samba from win

Reply to Message Icon

Name: dvg5000
Date: June 15, 2005 at 03:15:20 Pacific
OS: WINDOWS XP PROFESSIONAL
CPU/Ram: PENTIUM IV/256
Comment:

i have samba installed on linux , i can see samba serever form windows system , when i tried to open the shared folder in the samba i get the error \\sambserver\administrator not accessable. The network name could not be found. can someone help regarding this



Sponsored Link
Ads by Google

Response Number 1
Name: MikeAtVillage
Date: June 15, 2005 at 03:57:22 Pacific
Reply:

Could you post your smb.conf file so we can see what you have set up please.


0

Response Number 2
Name: 3Dave
Date: June 16, 2005 at 07:13:19 Pacific
Reply:

What user are you logged on to the windoze box as? Have you added this user to the linux box and also the samba users database? If you are trying to log on as dvg, on the samba server:

# useradd dvg
Follow the prompts and create the user account (eg home directory, shell, password etc). After that add the user to the samba users database:
# smbpasswd -a dvg
Enter the same password as you use for windoze and try connecting again.


0

Response Number 3
Name: dvg5000
Date: June 19, 2005 at 00:41:39 Pacific
Reply:

i had add the user in the linux e.g administrator and also # smbpasswed -a administrator. but i donot have the rights to open or browse the user folder , how can i give rightst my user e.g administrator to his home folder in linux system.i using administrator user to connect to linux smb server from windows .


Thanking You for reply both of you sir,


0

Response Number 4
Name: 3Dave
Date: June 20, 2005 at 01:21:48 Pacific
Reply:

Towards the end of your smb.conf file should be a list of shares. There should be one in there that looks like:
[homes]
comment = Home Directories
browseable = no
writable = yes
I take it that you can log onto the linux server locally as administrator and browse /home/administrator OK?

Post up your smb.conf file please.....


0

Response Number 5
Name: dvg5000
Date: June 21, 2005 at 01:40:07 Pacific
Reply:

even though i given browsable to yes for home directries user and even if i login as administrator in linux i can't create a file in my home folder .that is may be the problem . how can i give administrator rights to my user in linux.


Thanking you for you kind reply


0

Related Posts

See More



Response Number 6
Name: 3Dave
Date: June 21, 2005 at 01:50:10 Pacific
Reply:

You don't want to give full permissions to your user account. Bear in mind that in linux your administrator user is just a regular user. The GNU/Linux equivalent of windoze administrator is root.

You still haven't posted up your smb.conf....


0

Response Number 7
Name: dvg5000
Date: June 23, 2005 at 00:01:32 Pacific
Reply:

MY Smb.conf file contiains following lines which are enabled

- _ - _ -
Workgroup=jjmmc
server string = samba server
host allow = 192.168.0. 172.16.0(Int & ext)
printcap name = /etc/printcap
load printers = Yes
printing = cups
guest account = pcguest
log file = /var/log/samba/%m.log
max log size = 0
encrypt passwords = yes
smb passwd file = /etc/samba/sambpasswd
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd char = *New*password* %n\n
socket options = TCP_NODELAY SO_RCVBUF=8192
SO_SNBUF=8192
local master = yes
dns proxy = no
[homes]
comment = Home Directories
browseable = yes
writeable = yes
create mode = 0664
directory mode = 0775
[netlogon]
comment= Network Logon Service
path = /usr/local/lib/netlogon
guest ok = yes
writable = yes
share modes = yes

[printer]
comment = All printers
path = /var/spool/samba
browseable = yes
pintable = yes
[public]
comment = Public Stuff
path = /home/samba
public = yes
writable = yes
pritable = yes
wirte list = @staff
[fredsdir]
comment = Fred's Service
path = /usr/somewhere/private
valid users = root
public = yes
writable = yes
pritable = no
[pchome]
commetn = PC Directories
path = /usr/local/pc/%m
public = yes
writable = yes
[root]
path = /root
invalid users = %S

#The file end here
- _ - _ - _

again if i tried using root user to browse samab,When i tried open the root home directory it again ask for user and password for that directory .

i want to know whether user is authinicated in Wndows or in Linux?

My Network contain one linux pc , one windows 2000 server in work group .

Is it need to create Linux users in Windows 2000 server ?

Thanking you for your kind help



0

Response Number 8
Name: 3Dave
Date: June 23, 2005 at 02:24:55 Pacific
Reply:

When connecting from a windoze machine to a samba server, the computer tries sending the currently logged on win user and password for access. If that user has not been added to linux and also to the samba users database, or if that user tries to access a share without having the correct permission then a username and password box should appear. Have you added root to the samba users database?
# smbpasswd -a root
Next time it prompts you for a username and password try root's account on the linux box.
Although you shouldn't really be logging on as root it may help to find the problem.

One thing I did notice about your smb.conf file is that you have now security level set! In the global section of the file (ie at the top before the shares are listed) add the line:
security = user
Other options are share, server, domain and ads. "share" might be another alternative you may want to try.

Also your hosts allow entry is not quite right. It should read hosts and not host and 172.16.0 should really be 172.16. as it is a class B network and should have a trailing "." I am not sure quite what you mean by (Int & Ext) as they are both private address ranges and should both be for internal use. have you tried with the hosts allow line commented out?

Don't forget that after each change to the config file you must restart the samba service, depending on your distro it could be:
# /etc/init.d/smb restart
# service smb restart
or maybe
# /etc/rc.d/rc.samba restart


0

Response Number 9
Name: dvg5000
Date: June 24, 2005 at 01:10:59 Pacific
Reply:

I had already add the root user samba database,i don't given permission to user administrator so because of that it is giving popup message error " \\linux \admin
-istrator is not accessible. The network name can't be found " in Windows.
Now i add the line secrity = user at Global. I have two IP one private and one Public so i chagned the line host allow line to
hosts allow= 172.16.0. 61.246.173.

i restarts the smb service whenever i edit the file.

Please tell me at last dave how to give share Permission to user administrator to read and write in linux.

Thanking You Dave, You have given very fine explatination which is i needed.



0

Response Number 10
Name: 3Dave
Date: June 27, 2005 at 05:02:43 Pacific
Reply:

I take it that there is actually a linux user called administrator and that they have a home directory under /home? Are you able to log on to the linux box locally as user administrator?


0

Response Number 11
Name: dvg5000
Date: June 28, 2005 at 06:11:19 Pacific
Reply:

i am able to login to linux server locally using user name administrator but unable to create any folder or file it gives error access denied. home direcoty is /administrator


0

Response Number 12
Name: 3Dave
Date: June 28, 2005 at 08:45:58 Pacific
Reply:

How did you create /home/administrator? Check the local permissions on that directory and contents:
$ ls -l /home
It should be owned by administrator with the permisions similar to drwx--x--x. You can change the owner with chown and the permissions with chmod. You may also want to pass the -R switch with those two commands to change the permissions recursively.


0
Reply to Message Icon

Printing problem on Samba Is This bad software???



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: unable acces the samba from win

Unable to access SAMBA Shares www.computing.net/answers/linux/unable-to-access-samba-shares/25514.html

Win 2000 unable to join Samba PDC www.computing.net/answers/linux/win-2000-unable-to-join-samba-pdc/17101.html

how can i connect to linux from win www.computing.net/answers/linux/how-can-i-connect-to-linux-from-win-/10752.html