LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-15-2014, 10:43 AM   #1
Bindu19
LQ Newbie
 
Registered: Jan 2014
Posts: 3

Rep: Reputation: Disabled
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.
 
Old 01-15-2014, 11:22 AM   #2
dolphin_oracle
Member
 
Registered: Dec 2013
Posts: 342

Rep: Reputation: Disabled
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
 
Old 01-15-2014, 02:46 PM   #3
Bindu19
LQ Newbie
 
Registered: Jan 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-15-2014, 03:08 PM   #4
dolphin_oracle
Member
 
Registered: Dec 2013
Posts: 342

Rep: Reputation: Disabled
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.
 
Old 01-15-2014, 03:15 PM   #5
Bindu19
LQ Newbie
 
Registered: Jan 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-15-2014, 03:34 PM   #6
dolphin_oracle
Member
 
Registered: Dec 2013
Posts: 342

Rep: Reputation: Disabled
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?
 
  


Reply


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
Create Linux Share that imitates Windows File Sharing (Samba?) cyberdeath Linux - Server 7 07-14-2013 03:40 AM
Error in mounting samba share in linux machine jsaravana87 Linux - Server 5 10-03-2011 06:10 AM
share folders in linux machine to windows machine except samba nikeshp Linux - Newbie 3 02-21-2011 09:06 PM
How to create an account for the CLI and for Samba rjo98 Linux - Newbie 3 08-17-2009 05:49 PM
specify network linux share on xp machine SBFree Linux - Newbie 1 05-27-2009 06:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration