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

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

fcekAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
santoshmotwaniConnect With a Mentor Commented:
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
 
fcekAuthor Commented:


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
 
fcekAuthor Commented:

Found this on google - will try it

Modify /etc/samba/smb.conf
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
santoshmotwaniCommented:
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
 
fcekAuthor Commented:


Cool, will give that a whirl now.
0
 
fcekAuthor Commented:


Hi,  Is it easier to do this in a Terminal window?
I was advised to use a Konsole - what say you?
0
 
santoshmotwaniCommented:
yes u have to do it via konsole
0
 
santoshmotwaniCommented:
as u r new to linux :

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


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

step 4:

:w ( to save)

?

I cant save a the moment.
How to save?

0
 
santoshmotwaniCommented:
Press <Esc> to get back to command mode

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

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
 
fcekAuthor Commented:
0
 
fcekAuthor Commented:
0
 
fcekAuthor Commented:

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

0
All Courses

From novice to tech pro — start learning today.