LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 07-12-2004, 04:08 PM   #1
xylo
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
Unhappy unable to create files using touch command on remote Win2003 sytem using samba


Hi All,

I have recently been turned on to the Linux OS. I am an excited Linux newbie. I am quite amazed at its capabilities. I find samba quite fascinating. I am having trouble creating files on Windows 2003 server from a Linux server. Here is what I have done.


I am sharing a directory called test on my Win 2K3 server (called galaxy).

On the Linux host which has Red Hat Advanced Server, I performed the following commands:

mkdir /mnt/win
export USER=Administrator
smbmount //galaxy/test /mnt/win
mount <---- after issuing this commnad, I can see that the windows share connected to the Linux directory /mnt/win
cd /mnt/win
ls

I am able to see and open the files on the Windows share successfully from the Linux server. But I am unable to create files on this remote Windows host using the touch command. For example, if I attempt to create an empty file called linux.txt by using the "touch linux.txt" command, I receive the following error message:

"touch: creating 'linux.txt': Perfmission denied"

Why is this happening?

Thanks in advance for any help,
xylo
 
Old 07-12-2004, 06:31 PM   #2
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 168Reputation: 168
afaik the limited write to ntfs capabilities don't allow for creating files, only modifing existing files. thats only if you've got the driver loaded, or compiled in your kernel. here is a thread and a link to do some reading

http://www.linuxquestions.org/questi...ght=ntfs+write

http://linux-ntfs.sourceforge.net/index.html#latest

there is , however, a program called captive that supposedly works well you can find it here

http://freshmeat.net/projects/captive/

i've never used it, so i don't know if it will work accross a network. hope that helps.
good luck.
 
Old 07-13-2004, 10:17 AM   #3
xylo
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Smile

Thanks Peacedog!! I totally appreciate the help. I will check out the links. Thanks
 
Old 07-15-2004, 10:05 AM   #4
member57
Member
 
Registered: Jul 2003
Location: Texas
Distribution: Mandrake
Posts: 65

Rep: Reputation: 15
I think that peacedog is wrong. You need the drivers if the partition you are writing to is physically attached to your linux box. Across a network, samba takes care of the NTFS problem, it is written just like anyother machine would do it across a network. Sounds like either:
1. You don't have permission to write to the share you want to.
2. You may need to mount the share with rw permissions.

The reason I know this is because I administer a mixed network of about 15 PCs and 3 servers. I can write at will to any w2k or XP machine (NTFS formatted) across my network. At any one time I will have 3-5 machines mounted to my main Linux server, and have no problems as long as the permissions are set correctly.
 
Old 07-15-2004, 11:59 AM   #5
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
Quote:
Originally posted by member57
I think that peacedog is wrong. You need the drivers if the partition you are writing to is physically attached to your linux box. Across a network, samba takes care of the NTFS problem, it is written just like anyother machine would do it across a network. Sounds like either:
1. You don't have permission to write to the share you want to.
2. You may need to mount the share with rw permissions.

The reason I know this is because I administer a mixed network of about 15 PCs and 3 servers. I can write at will to any w2k or XP machine (NTFS formatted) across my network. At any one time I will have 3-5 machines mounted to my main Linux server, and have no problems as long as the permissions are set correctly.
correct,

try this command to mount the share...

mount -t smbfs //server/share /mnt/win -o username=username

make sure your user has write permissions to /mnt/win before runing the mount command.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
samba: Unable to open/create TDB passwd cccc Debian 1 07-05-2006 08:55 PM
Cannot create files on samba share jhoderd Linux - Software 2 01-04-2005 09:46 AM
Using samba to print to a win2003 shared printer sam_casperson Linux - Networking 0 07-12-2004 02:57 AM
Samba 3.0.2 fails to join Win2003 domain JimBass Linux - Networking 1 06-09-2004 03:46 PM
'touch' command on subtree/files stoffell Linux - Software 2 09-23-2003 11:40 AM


All times are GMT -5. The time now is 09:54 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration