LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 10-27-2011, 10:22 AM   #1
akamikeym
Member
 
Registered: May 2008
Posts: 112

Rep: Reputation: 21
Double parter - Meathods of Sharing a Folder and/or Samba config


Hi,

I'm trying to Share a folder on a server machine. I would like it if possible to have some security, but it's essentially a group share. I've been using NFSv4 but had to abandon it as it's currently too buggy- caused problems with 'umount' and auto-mounting and suspending. (Also didn't have any security to speak off.)

So I was wondering what other networking file systems could be usable. I spotted sshfs which looked promising but my ssh use passphrases and I couldn't see a way of prompting for them.

I've most recently tried Samba and can run it as a guest share, but I'm not sure how to set it up so that I am prompted for a password when I try to connect with Nautilus.
 
Old 10-27-2011, 10:42 AM   #2
travisdh1
Member
 
Registered: Sep 2008
Distribution: Fedora
Posts: 129

Rep: Reputation: 22
Basically you need some sort of authentication method for samba. I don't have the time to get into many details here so try googleing for something like "samba configuration tutorial" should find lots of stuff to get you started.
 
Old 10-27-2011, 11:40 AM   #3
akamikeym
Member
 
Registered: May 2008
Posts: 112

Original Poster
Rep: Reputation: 21
hmmmmm... well I've got Samba working kind of as I'd like (one user with a password). How sensible it is or secure it is is debatable.

The Authentication section of /etc/samba/smb.conf now has:

Code:
   security = user
   encrypt passwords = true
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user
And the share is like:

Code:
[share]
    comment = My Shares
    path = /path/to/my/share
    browsable = yes
    guest ok = no
    read only = no
    create mask = 0755
    valid users = smbuser
I then added a user without a logon (no idea if that is required) and add a samba password:

Code:
sudo useradd -s /sbin/nologin smbuser
sudo smbpasswd -a samba

I'm not actually much of a Samba fan so I'd stil like to know the second part to my question, if anyone could provide me with the alternatives for sharing a folder over a network along the lines of Samba and SSHFS?
 
  


Reply



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: permission for sharing public and private folder zamri Linux - Software 16 02-02-2011 07:49 AM
Samba File/Folder sharing question henk001 Linux - Networking 1 07-14-2009 09:43 PM
Why Samba Server is sharing my Home folder? baig Linux - Security 2 12-18-2008 07:59 PM
(re)sharing an nfs-mounted folder with samba rtspitz Linux - Networking 1 02-13-2005 01:36 PM
Samba config for sharing MP3's gavinc Linux - Newbie 1 10-22-2003 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:06 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
Open Source Consulting | Domain Registration