LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-23-2007, 03:25 AM   #1
Jordi
LQ Newbie
 
Registered: Mar 2007
Location: Barcelona
Distribution: CentOS
Posts: 11

Rep: Reputation: 0
Samba users permissions problem


Hi all,

I've a OpenSUSE box running as SAMBA server. The smb.conf is:

Code:
[global]
        workgroup = LLOVERAS
        load printers = no
        printing = bsd
        printcap name = /dev/null
        disable spoolss = yes
        map to guest = Bad User
        logon path = \\%L\profiles\.msprofile
        logon home = \\%L\%U\.9xprofile
        logon drive = P:
        domain logons = No
        domain master = No
        encrypt passwords = Yes
        smb passwd file = /etc/samba/smbpasswd
        netbios name = ANUBIS
        log level = 1
        logfile = /var/log/samba/log.%U
        max log size = 2048
        add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
        security = user
        socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
        smb ports = 139
        bind interfaces only = yes
        interfaces = 192.168.1.1
        wins support = yes
        local master = yes

[publica]
        comment = Carpeta pública
        path = /srv/samba/public
        read only = no
        inherit acls = yes
        create mask = 777
        directory mask = 777
        valid users = lluis carles rafa ernest xavi

[carles]
        comment = Carpeta privada Carles
        path = /srv/samba/carles
        inherit acls = Yes
        read only = No
        valid users = carles lluis

[lluis]
        comment = Carpeta privada Lluis
        path = /srv/samba/lluis
        inherit acls = Yes
        read only = No
        valid users = lluis

[ernest]
        comment = Carpeta privada Ernest
        path = /srv/samba/ernest
        inherit acls = Yes
        read only = No
        valid users = ernest lluis

[rafa]
        comment = Carpeta privada Rafa
        path = /srv/samba/rafa
        inherit acls = Yes
        read only = No
        valid users = rafa lluis

[xavi]
        comment = Carpeta privada Xavi
        path = /srv/samba/xavi
        inherit acls = Yes
        read only = No
        valid users = xavi lluis
And..

Code:
drwxr-xr-x   8 root   root     79 Apr 18 13:54 .
drwxr-xr-x   5 root   root     38 Jan  2 17:33 ..
drwxr-xr-x   3 carles users    28 Nov  2 16:54 carles
drwxr-xr-x   2 ernest users     6 Aug 18  2006 ernest
drwxr-xr-x   6 lluis  users    87 Apr 19 09:37 lluis
drwxrwxrwx  15 nobody nobody 4096 Apr 23 06:34 public
drwxr-xr-x   4 rafa   users    65 Feb  1 17:07 rafa
drwxr-xr-x   2 xavi   users    26 Apr 18 17:01 xavi
As you can see, only the user called lluis can acces into any directory (note the security option and their values). But the problem is he only can acces under READ permission. I want that this user (lluis) can acces with complete permissions into any present directory.

¿How?

Thanks in advance.
 
Old 04-24-2007, 03:49 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
for the 'lluis' share, put in "writable=yes". Try that.

-twantrd
 
Old 04-26-2007, 12:23 AM   #3
Jordi
LQ Newbie
 
Registered: Mar 2007
Location: Barcelona
Distribution: CentOS
Posts: 11

Original Poster
Rep: Reputation: 0
Solved

I think you've misunderstanded my words. The parameter writeable doesn't solve anything.

The solution has being very simple.
I've added create mask = 770 and directory mask = 770 in global section. All samba users are in users group, so it's enough for user lluis have complete permission when he access into any share resource.

Thanks anyway.
 
Old 04-26-2007, 02:48 AM   #4
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Edit: decided to remove comment

Last edited by twantrd; 04-26-2007 at 02:55 AM.
 
  


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
setting samba read/write permissions for seperate users phildacey Linux - Networking 3 11-07-2006 04:09 AM
Samba and different permissions for different users ... pjones1974 Linux - Newbie 1 02-23-2006 12:59 PM
problem with users, groups, and permissions. symo0009 Linux - General 4 01-24-2006 11:54 AM
Samba Permissions - RWX for all Users joshnya Linux - Newbie 2 05-17-2005 11:28 AM
Samba: How to set permissions on subfolders for different users. adewri Linux - Software 3 08-25-2003 11:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:42 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