LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Create Network Share via Samba on Linux machine via CLI (https://www.linuxquestions.org/questions/linux-newbie-8/create-network-share-via-samba-on-linux-machine-via-cli-4175491379/)

Bindu19 01-15-2014 09:43 AM

Create Network Share via Samba on Linux machine via CLI
 
To make the folder "/home" accessible through the share I have followed these steps.

#smbpasswd -a root
-> set the password
#chmod -R 775 /home
#chgrp -R root /home
#vim /etc/samba/smb.conf
[share]
path = /home/thor_monitor_tool/thor_monitor
comment = samba share for company files
valid users = root
public = no
writable = yes
printable = no
create mask = 0765
#service smb restart

Still I'm not able to access the home folder from windows machine. I can only see the share folder created.

I will be grate if any one can guide me in this regard.

dolphin_oracle 01-15-2014 10:22 AM

You have set your folder so that only your root user can access it.

This video may be of interest to you.

http://www.youtube.com/watch?v=MgpEGIDUAQQ

Bindu19 01-15-2014 01:46 PM

I tried setting the path to root directory "/". But this does not list any newly created directories under "/".
Any new files that I create under root directory "/" are accessible through share.
I'm not getting why any directory that I create under "/" are not accessible on share.

dolphin_oracle 01-15-2014 02:08 PM

I think you'll be better off with a share that is not / . In the comments of the video I posted you should see various smb.conf profiles for a variety of security situations.

Are you logging in as "root" from the windows system? Its likely that you are creating folders with permissions that do not match the remote users' permissions.

There are a variety of linux permission and security features in place that are not overridden by the smb.conf. Everything must be in harmony with the linux permissions and the samba permissions for the share to work.

Bindu19 01-15-2014 02:15 PM

Ya I'm logging in as "root" and the owner of directory is also root. I have set the permissions of the newly created folders with the permissions matching the folders that are accessible through the share, even then the newly created folders were not accessible.

dolphin_oracle 01-15-2014 02:34 PM

I don't know...I've never set up a system logging into a server from a remote system as root. I still think you are running into an unintended situation here. Have you tried setting things up for a regular user?


All times are GMT -5. The time now is 01:02 PM.