Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Fedora / Samba n00b - how to make a share accessible by 4 users.  Only originator can edit.  All  others "save as"

Posted on 2011-03-15
14
Medium Priority
?
486 Views
Last Modified: 2012-05-11
Win7 / xp cleints.
 
What could this be?  Anyone any ideas?
I need 4 out of say 15 users to be able to see and edit files. All other users on Samba - no access.

This is the folder:

drwxrwxrwx. 5 root root 4096 Mar 15 03:55 admin-private
[ed@server1 users folders]$ ls -ld admin-public

0
Comment
Question by:fcek
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 5
14 Comments
 
LVL 16

Accepted Solution

by:
santoshmotwani earned 2000 total points
ID: 35143341
you can create a new user group say adminpublic and put all 4 users in that.

add this to smb.conf :

[admin-public]
   comment = admin public
   writable = yes
   locking = no
   path = (your path to folder)
   directory mode = 777
  create mode = 666
  valid users = @adminpublic
  force group = adminpublic
  create mask = 0660
  directory mask = 0771
 

Let me know how you go.
0
 

Author Comment

by:fcek
ID: 35143446


Hi,

Ive a test server beside a working one .......

> Done this "you can create a new user group say adminpublic and put all 4 users in that."

Where is the smb.conf ? How can I edit it?

Im alright at DOS, but this is new to me.
0
 

Author Comment

by:fcek
ID: 35143476

Found this on google - will try it

Modify /etc/samba/smb.conf
0
Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

 
LVL 16

Expert Comment

by:santoshmotwani
ID: 35143492
Create a group :

groupadd adminpublic
useradd -g adminpublic username

Do this for your four users.

smb.conf :

step :1
 sudo vi /etc/samba/smb.conf

step : 2

type i ( insert mode)

step 3:

go at the bottom of smb.conf

type this :

[admin-public]
   comment = admin public
   writable = yes
   locking = no
   path = (your path to folder)
   directory mode = 777
  create mode = 666
  valid users = @adminpublic
  force group = adminpublic
  create mask = 0660
  directory mask = 0771

step 4:

:w ( to save)

then quit

restart samba services :

/etc/init.d/samba restart

let me know how you go




0
 

Author Comment

by:fcek
ID: 35143496


Cool, will give that a whirl now.
0
 

Author Comment

by:fcek
ID: 35143570


Hi,  Is it easier to do this in a Terminal window?
I was advised to use a Konsole - what say you?
0
 
LVL 16

Expert Comment

by:santoshmotwani
ID: 35143574
yes u have to do it via konsole
0
 
LVL 16

Expert Comment

by:santoshmotwani
ID: 35143576
as u r new to linux :

this will help you http://www.yolinux.com/TUTORIALS/unix_for_dos_users.html
0
 

Author Comment

by:fcek
ID: 35143589


All good ............. but

step 4:

:w ( to save)

?

I cant save a the moment.
How to save?

0
 
LVL 16

Expert Comment

by:santoshmotwani
ID: 35143597
Press <Esc> to get back to command mode

and either type zz ( save & exit) or :w(save)
0
 

Author Comment

by:fcek
ID: 35143762

All cool.  Im going to create two more question - will post links here then close this one.
 

I want to start from the top over two questions if I may

1) create a share called zzzz

2) permissions (which I can part follow from this)
Maybe call the group of users zzzz-group
0
 

Author Comment

by:fcek
ID: 35143807

Its 1am here, thanks for the help.  Will crack on tomorrow with them 2 new questions.

0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question