Mint Not Saving Samba Sharing Settings After Restart/Shutdown
I pieced this PC together cheaply in December for a small home file server/HTPC. I wanted to dabble in Linux since i'm an IT major in school but I don't have much experience with Linux. I first tried Ubuntu and it was a nightmare. I had so many issues with it I switch to Linux Mint. But I’m presented with a different problem. Everything is set-up correctly except for when I turn off the system or do a restart the samba shares settings are gone and I have to go back and share the folders again. I've tried working with the SMB.conf file but the problem still persists. Does anyone have any ideas about this? I will attach the smb.conf file so you guys can look it over.
Code:
#======================= Global Settings ======================= |
'smbclient -gNL hostname ' will list available shares on the host. Do you have the correct permissions on the /media folder? I use Debian and Fedora, and on both of those distributions the /media directory is owned by root:root and not writable by non-root users. Also, is the shared folder on a CDROM or other external medium that may not be mounted at the time samba initializes?
|
2 Attachment(s)
Quote:
Attachment 26883 Here is a screenshot of the permissions of the folder I'm trying to share. Attachment 26884 To answer you're final concern, the folder is located on a secondary hard drive. Mint is installed and running off of an SSD and the folder I'm wanting to share is on another HDD installed on the system. If I share a folder that is on the SSD then it's working perfect, shows up on my network to other PC's but if it's a folder on the secondary storage drive then it's all kinds of problems. |
Meh-- I know what *I* would do. But, it's a hack. I would set up an smb.conf the way I want it and store it somewhere. Then, I would add a script to the startup procedure that copies the script to /etc/samba and restarts the samba daemon. Like this:
Code:
cp <path>/smb.conf /etc/samba |
You need to use the actual hostname of the computer and not the literal word "hostname" On the same computer you can also use localhost.
smblient -NL localhost What do you mean by the settings are gone? Are the shares visible but not accessible? force user = Bryon is only valid for shares and not as a global directive. Your share Media Quote:
|
2 Attachment(s)
Quote:
Here is what I got from using localhost with smbclient. Attachment 26920 Whenever I restart or turn the server on this is what happens to my share settings. They are reset to not be on. I have to go into properties and reshare everything again. |
Any have ideas on why my system will keep keep the shared folder settings?
|
All times are GMT -5. The time now is 11:51 PM. |