Jump to content

Access denied - copying over LAN


Kowash
 Share

Recommended Posts

Hi

 

Thanx for all the help in the past. You guys are really awesome.

 

MY PROBLEM.

When I copy a file to my Mandrake 10.2 LE laptop it gives me the access denied error. I am able to browse but can not get the permision to copy.

 

I TRIED.

I have already got my whole network running fine. I can print over the lan from Linux to Win. I have shared internet connections and I am able to browse both ways.

 

I changed the settings on the SHARE for the directories to all users.

I checked in SAMBA to see if the folders are shared and they are.

 

MY SETUP

Mandrake 10.2 LE with KDE 3.2 on my laptop connected through a Switch to my WinXP Box.

 

Thanx for your help

 

have a great day.

 

Kowash

Edited by Kowash
Link to comment
Share on other sites

Sounds to me a username/password issue. Have you checked that both usernames are identical, passwords same on both machines, and also configured the access rights correctly in samba?

Link to comment
Share on other sites

Sounds to me a username/password issue.  Have you checked that both usernames are identical, passwords same on both machines, and also configured the access rights correctly in samba?

No

 

Should the usernames and passwords be the same?

I will do that.

 

I don't know how to change anything in samba except for mounting.

I did set up the share on the documents. I believe that is the only way you can do that with SAMBA. Don't know if I am right?!

 

I will be back with an answer about if it works soon

 

Kowash

Link to comment
Share on other sites

What you could do, is copy the file using the Linux machine. Open konqueror, and then type:

 

smb://xpmachinename/sharename

 

supply username and password when prompted, and then copy the file across.

 

I've never tried it the other way, and not got a system right now to test it, but that's probably your easiest method for the time being.

 

Have you followed the samba faq on here?

Link to comment
Share on other sites

you can also do it like this... assuming that you have a user=xpuser and password=xpuserpassword and a shared folder named sharedfolder on your XP Machine

 

now in your linux box, open your konsole, as regular user, create a directory inside your linux home dir named xpshare, then do the command below in your konsole

$smbmount //xpmachine/sharedfolder /home/user/xpshare/ -o username=xpuser%xpuserpassword

 

that should mount the sharedfolder on xpshare, you can then browse it locally via konqueror, create new files on it (if xpuser has the right to write as how you set it on your XP Machine)

 

but, if you still experienced the said problem, try to check your log file, it'll show you some hints on troubleshooting

Link to comment
Share on other sites

you can also do it like this... assuming that you have a user=xpuser and password=xpuserpassword  and a shared folder named sharedfolder on your XP Machine

 

now in your linux box, open your konsole, as regular user, create a directory inside your linux home dir named xpshare, then do the command below in your konsole

$smbmount //xpmachine/sharedfolder /home/user/xpshare/ -o username=xpuser%xpuserpassword

 

that should mount the sharedfolder on xpshare, you can then browse it locally via konqueror, create new files on it (if xpuser has the right to write as how you set it on your XP Machine)

 

but, if you still experienced the said problem, try to check your log file, it'll show you some hints on troubleshooting

Hi, thanx for your help

 

It is not working. The error message says that the directory does not exist.

 

This is what I typed.

My xpmachine is called office

I have a sharedfolder on my xpmachine called LAptop.

My user name is kowash and my password is diligence

On my linux laptop in my home directory is my user account called kowash

In that directory I created a directory that is called office.

 

MY COMMDAND

$smbmount //office/LAptop /home/kowash/office/ -o username=kowash%diligence

 

MY ERROR MESSAGE

//office/LAptop does not exist

 

Please tell me what I am doing wrong. Have a great day

 

Kowash

Link to comment
Share on other sites

What you could do, is copy the file using the Linux machine.  Open konqueror, and then type:

 

smb://xpmachinename/sharename

 

supply username and password when prompted, and then copy the file across.

 

I've never tried it the other way, and not got a system right now to test it, but that's probably your easiest method for the time being.

 

Have you followed the samba faq on here?

No, I haven't

 

I will try it.

 

Thanx

 

Kowash

Link to comment
Share on other sites

Hi, I also had that problem on my network (Linux/XP) and after several hours of digging (i'm still so noob :) ) i found this:

 

1) my shared folder '/home/ilia_kr/share' didn't allow other users (only owner could view & edit) - so i chenged it to 'everybody'.

 

2) in samba's config (/etc/samba/smb.conf) you sould enable this paragraph:

 

[ILIA_SHARE]
  path = /home/ilia/Share   
  comment = XPshare
  public = yes                    
  guest ok = yes
  writable = yes

 

'path = /home/ilia/Share' - your shared folder

'public = yes ' - wether or not others can view shared folder

'writable = yes' - is the most important for you - it enables writing in your shared directory

 

also, see MUB's samba FAQ for reference :D

 

 

Good Luck!

Edited by ilia_kr
Link to comment
Share on other sites

Hi, I also had that problem on my network (Linux/XP) and after several hours of digging (i'm still so noob :) ) i found this:

 

1) my shared folder '/home/ilia_kr/share' didn't allow other users (only owner could view & edit) - so i chenged it to 'everybody'.

 

2) in samba's config (/etc/samba/smb.conf) you sould enable this paragraph:

 

[ILIA_SHARE]
  path = /home/ilia/Share   
  comment = XPshare
  public = yes                    
  guest ok = yes
  writable = yes

 

'path = /home/ilia/Share' - your shared folder

'public = yes ' - wether or not others can view shared folder

'writable = yes' - is the the most important for you - it enables wring in your shared directory

 

also, see MUB's samba FAQ for reference  :D

 

 

Good Luck!

Great, That is going to work.

 

Even though I changed it in konqueror it did not change in smb.cong

The only problem I have now, is being able to save the changes I have made. i am getting a error that I am not authorized to change it.

 

I am the only user, logged in to my name. what can I do?

 

Kowash

Link to comment
Share on other sites

Great, That is going to work.

 

Even though I changed it in konqueror it did not change in smb.cong

The only problem I have now, is being able to save the changes I have made. i am getting a error that I am not authorized to change it.

 

I am the only user, logged in to my name. what can I do?

 

Kowash

 

Open the terminal and then:

- 'su' to root

- open smb.conf in vim (cd /etc/samba ; vim ./smb.conf)

- make your changes

- * to save them: press 'esc' button; type ':'; type wq (w- write; q- quit)

 

* vim help

 

That should work.

Link to comment
Share on other sites

Great, That is going to work.

 

Even though I changed it in konqueror it did not change in smb.cong

The only problem I have now, is being able to save the changes I have made. i am getting a error that I am not authorized to change it.

 

I am the only user, logged in to my name. what can I do?

 

Kowash

 

Open the terminal and then:

- 'su' to root

- open smb.conf in vim (cd /etc/samba ; vim ./smb.conf)

- make your changes

- * to save them: press 'esc' button; type ':'; type wq (w- write; q- quit)

 

* vim help

 

That should work.

Thanx,

 

My config after I changed it looked like this

[KOWASHOFFICE]

path = /home/kowash/Office

comment = /home/kowash/Office

public = yes

guest ok = yes

writable = yes

wide links = no

 

Unfortunately it did not work.

It was a nice lesson. :D

 

Sometimes I feel like. It's only me and my PC on some foreign Island called - Ourownthingsworkdifferent :lol:

 

Anyway. I am eagerly awaiting your reply

 

Bye

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...