LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-25-2002, 10:40 PM   #1
bdog
LQ Newbie
 
Registered: Jan 2002
Posts: 5

Rep: Reputation: 0
Accessing Win2K Shares-permission denied


Great site this is. Been helped many times just by reading!

I'm having great difficulty figuring out how to access shares on my Win2K machine on my local network from Mandrake 8.1. Accessing file on the Linux machine from Win2K using Samba sever on the linuxbox is working great, however.

I can mount my Win2k share using this when logged in as root:
mount -t smbfs //servername/sharename /mountpoint
where mountpoint is /mnt/test for me currently.

The share shows up when 'mount' is issued, and in Win2K I can see that user "Root" is in session.

Problem is that on the linux machine, I cannot actually access the Win2K shared files. Nothing showes up in KDE, and when not using X, I can 'cd' to the /mnt/test , but when issuing 'ls' I recieve the error message "Permission denied"

I've read a lot of different stuff on this subject and have ended up thoroughly confused. Are my user settings wrong in Win2K? Am I missing something in Linux? Where should I go from here??

thanks-

B.
 
Old 01-25-2002, 10:58 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you could pass a valid win2k username and password to win2k in the mount command, here is what I use...

mount -t smbfs //win2k/pub /lan/win2k -o username=david,password=passwd

then make sure the shares are accessable by the user.

or you can enable the guest account and set the shares access to everyone.


what does this do?

smbclient -L win2kname

Last edited by DavidPhillips; 01-25-2002 at 11:03 PM.
 
Old 01-25-2002, 11:08 PM   #3
bdog
LQ Newbie
 
Registered: Jan 2002
Posts: 5

Original Poster
Rep: Reputation: 0
Smile

Thank You -

That was quick too. I changed the permission for the Win2K shared folder to 'everyone' and it worked immediatly.

Thanks Again!!

b.
 
Old 01-25-2002, 11:11 PM   #4
bdog
LQ Newbie
 
Registered: Jan 2002
Posts: 5

Original Poster
Rep: Reputation: 0
When I issue "smbclient -L win2kname" I am prompted for a password. If I enter the password for a Win2K user that matches my linux username, I see a list of shares on the windows machine.

It seems I need to look furuther into my windows users and passwords and try them with a single linux command line like you suggested.

thanks again!!!

b.
 
Old 01-26-2002, 07:26 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
your welcome
 
  


Reply



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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
can't mount windows 2003 shares - permission denied kanuuker Linux - Networking 2 08-15-2005 04:23 PM
Permission Denied for script accessing text file lobo1 Linux - General 2 06-28-2005 12:46 PM
Permission denied with Samba and Win2k richa65 Linux - Software 8 08-29-2003 11:11 PM
Accessing shares chrismagnuss Linux - Networking 1 10-02-2001 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:21 AM.

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