Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-01-2002, 09:19 AM
|
#1
|
LQ Newbie
Registered: Apr 2002
Posts: 2
Rep:
|
Permission denied with Samba and Win2k
I have both a Win2k and a 98 machine networked with my Linux box (Redmond Linux Build 44). I have both mounted through smbmount. I have samba 2.2.1a.
When copying files from Win98, I have no problems.
When copying from Win2k, I get the following errors:
cp -R /mnt/mp3 /backup
cp: mp3/80S/Depeche Mode - People Are People.mp3: Permission denied
cp: mp3/80S/Depeche Mode - Speak And Spell.mp3: Permission denied
cp: mp3/80S/Dire Straits - Brothers in arms.mp3: Permission denied
cp: mp3/80S/Dire Straits - Money For Nothing.mp3: Permission denied
Now this error is not on every file in the directory that I try to copy. About 50% copy over fine, the other 50% get this error. This is 100% repeatable (same files pass/fail everytime). And I can find no distinguising characteristics between those that fail and those that do not. Again, these same file work 100% when copying from the Win98 machine.
Anyone have any tips or suggestions?
Thanks in advance.
|
|
|
04-02-2002, 12:20 AM
|
#2
|
Member
Registered: Dec 2001
Location: Orange County, CA
Distribution: RedHat 7.2, 7.3, 8.0
Posts: 66
Rep:
|
It sounds like your W2K machine is formatted with an NTFS filesystem. Check the permissions in W2K for those files that don't work.
I would guess that the particular user you are trying to use doesn't have permissions to those files on the NTFS partition.
W98 doesn't support NTFS, so this would explain why it only happens on W2K. It also explains why it only happens to the exact same files over and over again.
To check the NTFS permissions, right-click the file, go to Properties, and check the Security tab.
Let me know what you find out.
Ryan
|
|
|
04-02-2002, 07:35 AM
|
#3
|
LQ Newbie
Registered: Apr 2002
Posts: 2
Original Poster
Rep:
|
You are correct, this is an NTFS partition. However, I verified the permissions. All of the files have the same permissions. Read, write, modify, etc. are all enabled.
|
|
|
08-25-2003, 07:52 PM
|
#4
|
LQ Newbie
Registered: Aug 2003
Posts: 3
Rep:
|
Sorry to bring that old thread up, but i have the exact same problem here and can't find any answer anywhere.
Some files will transfer just fine...others will say permission denied and get created on the linux box with 0kb size.
If anyone has an answer to this, plz tell me so!!
Thanks!!
|
|
|
08-27-2003, 07:33 AM
|
#5
|
LQ Newbie
Registered: Aug 2003
Posts: 3
Rep:
|
OK, this is definetly a problem with NTFS partitions. I can sorta go around this by copying the file on my windows machine, delete the original file and then rename the copy. If i then try to copy it from linux, it will work most of the time.
So i'm guessing it linux can't read files stored in some way or some location on NTFS partitions...I guess there's nothing to do about it other than getting myself a Fat32 partition on windows to share my files.
|
|
|
08-27-2003, 11:18 AM
|
#6
|
Member
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346
Rep:
|
creat user accounts with same username and password in liux which are using windows windows 2000
may it will resolve problem
regards
|
|
|
08-28-2003, 02:43 AM
|
#7
|
Member
Registered: Apr 2002
Distribution: RH 9
Posts: 230
Rep:
|
i had similar inconsistent (i.e. 50%/50%) problems with smbfs to ntfs. having gid,uid,fmask, and dmask all set straightened it out, may work in your case.
example from auto.samba file (using autofs)
ShareName -fstype=smbfs,credentials=/etc/auto.samba.credentials,uid=500,gid=500,dmask=0750,fmask=0750 ://machineName/ShareName
|
|
|
08-29-2003, 10:47 PM
|
#8
|
LQ Newbie
Registered: Aug 2003
Posts: 1
Rep:
|
Are there similarities between the files that won't copy?
In the example they all have "-" in the names, which may be the problem. Try copying it to the same filename with no "-" (use win98 etc. if you have to).
|
|
|
08-29-2003, 11:11 PM
|
#9
|
LQ Newbie
Registered: Aug 2003
Posts: 3
Rep:
|
Thanks for the replies, i haven't had time to try them yet, but i will.
Taff: Filenames aren't the problem. When i tried the copy/delete thing, i renamed the copy to exactly the same as the original and it worked.
i.e. I had the file "pic1.jpg" that wouldn't copy to linux. I made a copy in windows which became "copy of pic1.jpg". I deleted the original file (pic1.jpg) and renamed the new one to that. I tried the transfer again and it worked.
I will tell you if any of the suggestions above fixed it for me.
Thanks!
Last edited by Propag; 08-29-2003 at 11:12 PM.
|
|
|
All times are GMT -5. The time now is 07:58 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|