Samba question
I have recently installed Slack 12 on my desktop machine changing from Kubuntu. During installation I created a partition specifically to use as a Samba share (/public). How can I share that a partition in Samba? I currently get the error "You can only share folders that are in your /home directory" or something to that effect. I would rather not set it up as root (if that is possible).
Thanks in advance, Eric |
There's no problem with setting it up as root, if by that you mean logging in as root, editing /etc/samba/smb.conf, creating a share and re-starting Samba. It's possible to restrict shares to users or groups and to force file and directory creation masks. For example:
Code:
[testshare] |
Thank you gilead, I'll Give that a try tonight. I'll certainly read through the Samba by Example pages as well.
Thanks again, Eric |
Pfft. Edit /etc/inetd.conf and uncomment the line relating to SWAT, then `killall -HUP inetd` to tell the superserver daemon to re-read it's config file. Then point your browser at http://thatmachinename:901 and use the wizard to configure Samba. Much, much easier.
|
the wizard is certainy easier, however I can not see the server on any of my other machines. It may be a router thing, I'll have to look into it more.
|
are you just wanting a file server that any machine on your network can access? if so I can help here.
Here is my smb.conf file, notice the include statement so I can add machine specific shares to smb.conf.<machine name> basically I added a user to the system (smbaccess) and added a directory (samba) to the home directory that I have a 320GB drive mounted to. smbaccess is the owner for that whole directory tree also you might like to add a default WINS server in your routers dhcpd configuration to point at a samba system or a windows system, I had to do that before my network neighborhood would behave correctly (stupid windows) pay attention to the hosts allow statement and edit it to your network Code:
# the user needed for guest account is smbaccess nekkutta |
Thanks, nekkutta that is exactly what I am trying to do. I have already created a new user (sambauser) and a new group (sambagroup) with ownership of all the files in the shared directory (/public) I have not had enough time to play with the samba/router configuration.
Thanks again, Eric |
another thing you might want to do is add a root cron entry for '/bin/chown -R sambauser:sambagroup <your shared base directory>/*' that way if you ssh to the machine and move stuff around with someone other than sambauser (ie. root) you won't have to worry about permissions. I've gotten bitten by that a couple times before I looked up how to use cron.
nekkutta |
All times are GMT -5. The time now is 02:28 PM. |