Kowash Posted October 18, 2005 Report Share Posted October 18, 2005 (edited) 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 October 18, 2005 by Kowash Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted October 18, 2005 Report Share Posted October 18, 2005 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? Quote Link to comment Share on other sites More sharing options...
Kowash Posted October 18, 2005 Author Report Share Posted October 18, 2005 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? <{POST_SNAPBACK}> 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 Quote Link to comment Share on other sites More sharing options...
Kowash Posted October 18, 2005 Author Report Share Posted October 18, 2005 I changed my login username with WinXP and made it and the password the same as the Mandrake 10.2 but it made no difference. I think I just need to set up SAMBA correctly. Thanx for the help Kowash Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted October 18, 2005 Report Share Posted October 18, 2005 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? Quote Link to comment Share on other sites More sharing options...
aioshin Posted October 18, 2005 Report Share Posted October 18, 2005 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 Quote Link to comment Share on other sites More sharing options...
polemicz Posted October 18, 2005 Report Share Posted October 18, 2005 Have you set up samba users? Samba does not use the regular user/password files, but its own. They have to be set up via smbpasswd. Quote Link to comment Share on other sites More sharing options...
Kowash Posted October 21, 2005 Author Report Share Posted October 21, 2005 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 <{POST_SNAPBACK}> 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 Quote Link to comment Share on other sites More sharing options...
Kowash Posted October 21, 2005 Author Report Share Posted October 21, 2005 Have you set up samba users? Samba does not use the regular user/password files, but its own. They have to be set up via smbpasswd. <{POST_SNAPBACK}> No, I haven't I don't know how. Kowash Quote Link to comment Share on other sites More sharing options...
Kowash Posted October 21, 2005 Author Report Share Posted October 21, 2005 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? <{POST_SNAPBACK}> No, I haven't I will try it. Thanx Kowash Quote Link to comment Share on other sites More sharing options...
ilia_kr Posted October 21, 2005 Report Share Posted October 21, 2005 (edited) 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 October 22, 2005 by ilia_kr Quote Link to comment Share on other sites More sharing options...
Kowash Posted October 22, 2005 Author Report Share Posted October 22, 2005 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! <{POST_SNAPBACK}> 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 Quote Link to comment Share on other sites More sharing options...
ilia_kr Posted October 22, 2005 Report Share Posted October 22, 2005 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 <{POST_SNAPBACK}> 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. Quote Link to comment Share on other sites More sharing options...
Kowash Posted October 22, 2005 Author Report Share Posted October 22, 2005 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 <{POST_SNAPBACK}> 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. <{POST_SNAPBACK}> 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 Quote Link to comment Share on other sites More sharing options...
polemicz Posted October 22, 2005 Report Share Posted October 22, 2005 Have you set up samba users yet? As root in a console enter: #smbpasswd -a username. You will be prompted for a password. The user must also be a user of your linux system. Samba authenticates from the smbpasswd file not the linux password file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.