Results 1 to 2 of 2
Hello, im wondering if it is possible to have a samba share on my ubuntu 9.10 desktop version to my win 7 desktop, of my sftp users root.I have an ...
- 07-25-2011 #1Just Joined!
- Join Date
- Jan 2010
- Posts
- 80
Samba share issue
Hello, im wondering if it is possible to have a samba share on my ubuntu 9.10 desktop version to my win 7 desktop, of my sftp users root.I have an sftp server set up via ssh with a rooted user "sftpuser" and i would like to have that same folder shared to my main pc's desktop so i can just drop stuff into it. Im sure this is possible but im just not sure how. I have followed some guides on making samba shares to win 7 but they all make their own new user for it and chroot it. None are using an existing rooted user.
- 07-25-2011 #2Linux Guru
- Join Date
- May 2011
- Posts
- 1,838
Yes, you should be able to do that - at least I just did it. In my example, my sftp chrooted user is "test", and the homedir is /home/test (which is owned by root, per sftp root reqmts) and the subdir "data" is the sftp area for the user.
Put something like this in your smb.conf
Then restart the samba daemon:Code:[testdata] comment = user test's sftp data path = /home/test/data valid users = test browseable = no guest ok = no writable = yes printable = no
Also, add the test user to the samba password file:Code:/etc/init.d/smb restart
Then from your Windows box try to access the "testdata" share on your Linux box, as your "test" user.Code:smbpasswd -a test


Reply With Quote