Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-07-2005, 10:58 AM   #1
Registered: Apr 2003
Distribution: Fedora
Posts: 126

Rep: Reputation: 15
Samba connecting to windows share

I have sucessfully connected to a share on a windows box using samba, but only root has read write permissions. How can I fix it so anyone can read and write to the samba mount??

Old 12-07-2005, 11:29 AM   #2
Registered: Jan 2005
Location: Clackamas, Oregon, US
Distribution: Slackware 10.2
Posts: 154

Rep: Reputation: 30
use the smbpasswd command with the user you would like to be able to use. Then configuring your samba configuration to allow that user to have access to the various files
Old 12-07-2005, 12:02 PM   #3
Registered: Apr 2003
Distribution: Fedora
Posts: 126

Original Poster
Rep: Reputation: 15
great. Can you point me to a how to somewhere, I don't quite grasp it all yet. Here is what I placed in the smb.conf file, but it does not work.

comment = export
path = /home/username/NFS ....where the share is mounted
valid users = username
public = no
writable = yes
printable= no

Old 12-09-2005, 11:16 AM   #4
Registered: Jan 2005
Location: Clackamas, Oregon, US
Distribution: Slackware 10.2
Posts: 154

Rep: Reputation: 30
comment is the name you would like to give it
set the path to a place you would like to share
set the valid users to the users you would like to have access, seperated by spaces
public i guess can be either one, which ever makes it work
writable if you want the users to be able to write
i don't think printable is really needed

good luck with that info, i'm not entirely sure if i'm write, the best place to check is the manual for smb.conf:
"man smb.conf"
Old 12-09-2005, 12:16 PM   #5
Senior Member
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
Rather than "valid users = username" and the same in your path directory, Samba understands %U to declare the variable for username. This should ensure the directory is mounted with permissions so only the user in question has access. However, gives a good overview of a better way of setting permissions on home directories, and also gives a good overview of using group shares + permissions, which is maybe somewhere you'll end heading.


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
Connecting with Samba Share via SSH Tunnel duliano Linux - Software 3 02-27-2005 08:23 PM
Problems connecting to Samba share from FC2 Phaethar Fedora 5 10-13-2004 04:02 AM
SAMBA: Connecting from rh9.0 smb 3.0 > windows xp share shookie Linux - Software 3 05-16-2004 07:01 PM
Redhat slow connecting to Samba share rthornt Linux - Software 4 03-15-2004 09:11 PM
Connecting to XP share from Fedora (Samba) thegreatnorth Linux - Software 1 12-12-2003 04:38 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration