How to create full right permission on Samba share

Samba is an Open Source/Free Software suite that has, since 1992, provided file and print services to all manner of SMB/CIFS clients, including the numerous versions of Microsoft Windows operating systems. Samba is freely available under the GNU General Public License.

Samba comes with different types of permissions for share and for some reason you may require creating new files and directory with full right permission 777.

The example show as below will guide you how to configure Samba share drive with 777 full right permission for any new files or folders created in /data/shared(example)?

[SHARED]
comment = SHARED data
path = /data/shared
valid users = user1, user2, planetmy
writeable = yes
create mask = 0777
force create mode = 0777
directory mask = 777

max connections = 10
veto files = .??*/.ssh/.profile/.mailrc

Read more

Possibly Related Posts:


Using Active Directory for SuSE Linux 10 Authentication

My previous post about How to Authenticate to Active Directory on SuSE Linux 9 & How to join Fedora Core 6 Samba Server to Windows 2003 Active Directory talked about using Microsoft Active Directory(AD) for Linux authentication. Yes! Linux & Microsoft can be friends.

Now we talk about SuSE Linux 10 and Microsoft AD authentication.

Basically everything are same as SLES 9 except PAM configurations.

Note: The setup running on SLES10 SP2 (It should be work on SP1)

Below are PAM configuration for SLES10:

/etc/pam.d/common-password
password sufficient pam_winbind.so
password required pam_pwcheck.so nullok
password required pam_unix2.so nullok use_authtok

/etc/pam.d/common-account
account required pam_unix2.so

/etc/pam.d/common-session
session optional pam_mkhomedir.so
session required pam_limits.so
session required pam_unix2.so

/etc/pam.d/common-auth
auth required pam_env.so
auth required pam_unix2.so

/etc/pam.d/passwd
auth include common-auth
account include common-account
password include common-password
session include common-session

/etc/pam.d/sshd
auth include common-auth
auth required pam_nologin.so
account include common-account
password include common-password
session include common-session

/etc/pam.d/login
auth required pam_securetty.so
auth include common-auth
auth required pam_nologin.so
account include common-account
password include common-password
session include common-session
session required pam_lastlog.so nowtmp
session required pam_resmgr.so
session optional pam_mail.so standard

/etc/pam.d/su
auth sufficient pam_rootok.so
auth include common-auth
account include common-account
password include common-password
session include common-session
session optional pam_xauth.so

/etc/pam.d/sudo
auth include common-auth
account include common-account
password include common-password
session include common-session

/etc/security/pam_unix2.conf
auth: call_modules=winbind
account: call_modules=winbind
password: call_modules=winbind
session: none

Read more

Possibly Related Posts:


Rapidshare Premium Account Again!

On March 2007, I had purchased Rapidshare Premium account and I’m purchased another RapidShare premium account yesterday. How much? It cost me Euro 6.99 for one month.

Why Rapidshare Premium account? I want to have a quick and unlimited free Video Course or CBT download.
Read more

Possibly Related Posts:


How to join Fedora Core 6 Samba Server to Windows 2003 Active Directory?

The following article “How to join Fedora Core 6 Samba Server to Windows 2003 Active Directory?” is tested on [tag]Fedora Core[/tag] 6, [tag]Windows[/tag] XP Professional & Windows 2003 Server running on top of Vmware workstation.

Read more

Possibly Related Posts:


LDAP Samba PDC Password Expired

Yesterday I found one of my LDAPSamba PDC server user account was expired.

Read more

Possibly Related Posts:


Planet Malaysia

  • Follow us on Twitter


  • web www.planetmy.com