LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Samba connecting to windows share (https://www.linuxquestions.org/questions/linux-software-2/samba-connecting-to-windows-share-390186/)

gfem 12-07-2005 10:58 AM

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??

-Gregg

tsphan 12-07-2005 11:29 AM

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

gfem 12-07-2005 12:02 PM

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.

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




thanks.

tsphan 12-09-2005 11:16 AM

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"

fouldsy 12-09-2005 12:16 PM

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, http://k12linux.org/netadmin/samba.html 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.


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