can't access second internal hard drive shared and using samba

Asked by Brett

Hey guys... first ever question and am sorry for having to ask but I just can't get this to work.

I'm trying to share a second internal hard drive installed on my server over the home network mounted below as /media/media/DATA with a shared folder MOVIES.

-------------------------------------------------------------

# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# swap was on /dev/sda5 during installation
UUID=ecee5bac-3e92-4886-9b43-e5b03a24d069 none swap sw 0 0
# /media/media/DATA is dev/sda1/
UUID=b3423e33-4c7a-4a82-bb6a-cefb0f6d1e53 /media/media/DATA ext4 rw,auto,user,exec 0 2
media@media-desktop:~$

-------------------------------------------------------------

Samba config :

-------------------------------------------------------------

media@media-desktop:~$ testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "null passwords" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Processing section "[Videos]"
Processing section "[Movies]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
 server string = %h server (Samba, Ubuntu)
 map to guest = Bad User
 null passwords = Yes
 obey pam restrictions = Yes
 pam password change = Yes
 passwd program = /usr/bin/passwd %u
 passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
 username map = /etc/samba/smbusers
 unix password sync = Yes
 syslog = 0
 log file = /var/log/samba/log.%m
 max log size = 1000
 dns proxy = No
 wins support = Yes
 usershare allow guests = Yes
 panic action = /usr/share/samba/panic-action %d
 idmap config * : backend = tdb
 path = /home/media/Videos

[printers]
 comment = All Printers
 path = /var/spool/samba
 create mask = 0700
 printable = Yes
 print ok = Yes
 browseable = No

[print$]
 comment = Printer Drivers
 path = /var/lib/samba/printers

[Videos]
 read only = No
 guest ok = Yes

[Movies]
 path = /media/media/DATA/Movies
 read only = No
 guest ok = Yes
------------------------------------------------------------------

I can see the shared folder [Movies] but can't access the folder from any computer or device on the network.

The shared folder [Videos] (on the main hard drive and in the home directory) has always showed up no problems and all the connected devices can access it's contents.

What am I doing wrong?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Brett
Solved:
Last query:
Last reply:
Revision history for this message
Brett (brett-g) said :
#1

After all this time and mucking about with multiple options from forums including samba / fstab / permissions / nautilus shares / etc...

the answer in my case was to force a user in the smb.conf

I used this command in the GLOBAL settings of smb.conf

force user = [my_user_name]

working.