LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-22-2005, 02:17 PM   #1
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
Samba permissions problem


Ok this one is either really simple or very complicated.

Here is the deal I have some mp3s and some videos on my machine (Running Slackware 10.2 and samba 3.0.20b.

Here is the extract of the smb.conf about the directoreies

Code:
[music]
        path= /stuff/music
        public=yes
        writable=no
        browsable=yes
        create mask=0744

[videos]
        path= /home/mago/ad
        public=yes
        writable=no
        browsable=yes
        create mask=0744
This is what the ls -l shows with those two directories:
Code:
drwxr-xr-x  19 mago users   624 2005-06-15 12:07 music
Code:
drwxr-xr-x  2 mago users 4.0K 2005-12-22 13:17 ad
OK Mago is obviously the owner, now I have two users added to smbpasswd that belong to users as well but they cannot access the videos, not even browse the directory. The weird thing is that they have no problem with the music.


Can someone help me out here?, as far as I checked everything is the same.

Thanks a bunch
 
Old 12-22-2005, 02:48 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Perhaps its a question of them not having read permissions on /home/mago? I should think samba would go directly to the right entry, but you never know.
 
Old 12-22-2005, 03:20 PM   #3
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Original Poster
Rep: Reputation: 33
I actually cheched that as well but just for the sake of it I
Code:
chown -R mago.users /home/mago
, and still nothing, I did
Code:
chmod -R 555 /home/mago
as well and nothing.
 
Old 12-22-2005, 10:19 PM   #4
centauricw
Member
 
Registered: Dec 2005
Location: Lawrenceville GA
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216

Rep: Reputation: 31
On the [videos] share, try adding "force user = mago". This will force Samba to access the files and directories for this share as user mago. They should be able to see everything but won't be able to change anything since you have "writable = no".
 
Old 12-23-2005, 02:14 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
If that doesn't work - can you try copying the files to another location like /usr/local/music? The /home directories have very restrictive permissions by default. At the moment I can create a directory under my /home/steve directory and give it permissions of 0777 but other users cannot perform an ls on the directory or its contents.

If you move the music and video files to somewhere with less restrictive permissions you can also create a symlink to that location from your home directory so you can still get to it easily.
 
Old 12-23-2005, 02:27 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Permissions of 0777 should allow anyone to access it... That's very odd. I agree, however, with your suggestion of relocating the storage.
 
Old 12-23-2005, 02:54 PM   #7
flashingcurser
Member
 
Registered: Jan 2003
Distribution: many win/nix/mac
Posts: 259

Rep: Reputation: 32
edit: Lemme review this again.



dan

Last edited by flashingcurser; 12-23-2005 at 03:19 PM.
 
Old 12-24-2005, 12:18 PM   #8
timdalr
LQ Newbie
 
Registered: Jul 2005
Location: Inverness, Scotland
Distribution: Slackware 10.2
Posts: 11

Rep: Reputation: 0
Can your samba server see it's own services? Try
Code:
smbclient -L localhost -U%
hopefully you should see videos and music. Try it and post details of output and will try and determine where to go next.
 
  


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
Samba Printer Permissions Problem cmfarley19 Linux - Networking 2 07-14-2011 03:59 AM
Samba problem - no permissions Seventh Linux - Software 5 11-08-2005 05:05 AM
Samba Permissions Problem Stormblade Linux - Software 1 11-12-2004 07:09 AM
samba folder permissions problem albracco Linux - Software 4 07-02-2004 07:01 PM
Samba Permissions Problem gigglesnorter Linux - Software 0 05-24-2004 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:28 AM.

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
Open Source Consulting | Domain Registration