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