LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem with FTP to a Windows device using Samba (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-ftp-to-a-windows-device-using-samba-430146/)

tinaj 03-30-2006 05:49 PM

Problem with FTP to a Windows device using Samba
 
I've searched this forum (and several others) for ways to solve the problem we're having with our servers. I hope that someone can help me with this.

We have a windows 2003 web server running XP with three web sites. We would like for the separate users to be able to FTP their web page changes to this server without emailing them to the admin to upload (our current process).

We have a Linux v9.12 box set up as our email and FTP server.

Using Samba we would like to mount a device that points the user’s home folder to the Windows web server to the root folder of their own web site.
Here is our fstab file:

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
//wotan/tinaj /home/tinaj/tjweb smbfs crentials=/etc/cred 0 0
//wotan/nickie /home/tinaj/nickieweb smbfs credentials=/etc/cred 0 0
//freya/pancake /home/pancaker smbfs credentials=/etc/cred 0 0

here is our cred file:
username = tinaj
password = ILove$MB
username = pancaker
password = Pancake$Good

Note: I haven’t entered a username/password for Nickie because I can’t get the other two accounts to work.

Using an FTP program, I am able to connect to the server and see my home folder with the tjweb folder as a subfolder. I can navigate to that folder and download files, but when I try to upload files I get this message:

“Could not create file.”

I am able to upload files to the home folder (/home/tinaj), but then to move them to the web server I have to telnet into the FTP server and log on as su to move them from the home folder to the tjweb folder.

When I telnet into the server and become su, I can see that all the files and subfolders are owned by ‘root’. As root, I can’t change the permissions on the files or folders to my own username.

We suspect that the issue is either a permissions issue on the web server, or that we’ve forgotten to change something in the Linux/Samba configuration that will allow us to upload files to subfolders in our home folders.

Thanks in advance for your help.
Tina

Jaqui 03-31-2006 03:59 AM

ftp server access is through an ftp client program, samba is not a requirement.
remove the samba link from ftp access and just ftp to the server through whichever ftp client you want.

samba is used for internal network connectivity between ms proprietary protocols and linux open protocols, ftp is a well established protocol in itself that every os has support for.


All times are GMT -5. The time now is 11:52 PM.