LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   trying to make a directory that everyone can see copy to and execute files from (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-make-a-directory-that-everyone-can-see-copy-to-and-execute-files-from-4175582570/)

jimyoung 06-18-2016 09:33 AM

trying to make a directory that everyone can see copy to and execute files from
 
i have a directory name server i want to copy files to it and have everyone to access it and change and execute a file from it on the workstation (windows 7) what would be the i have the chmod set to 0660 and 771 in the smb.conf file debian 8.5

keefaz 06-18-2016 10:18 AM

You mean a public directory in the server?

jimyoung 06-18-2016 12:13 PM

yes a public that 5 users can use
 
yes and 5 users can execute a setup file in windows with

jimyoung 06-18-2016 03:31 PM

this is how i have configured
 
the smb.conf file under group share
[server]
comment = all Users
path - /home/shares/server
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
writable = yes



hope you can help

keefaz 06-18-2016 04:31 PM

I would try:
Code:

[ourdirectory]
comment = just us
path = /home/shares/server/our_dir
valid users = jimyoung adelaide anna colin dean
writable = yes
create mode = 0640 ; or 0644
directory mode = 0770 ; or 0755


jimyoung 06-18-2016 04:45 PM

will try that and let you know
 
Thanks Keefaz will try that i have two tax programs that have to get data from the server. hope this works

jimyoung 06-18-2016 05:52 PM

did not work
 
tried that and it would not let do anything. the other one in this post will let send files but will not let use them i hope this makes sense.

keefaz 06-18-2016 07:57 PM

checked permissions for shared dir? Users registered in samba db with smbpasswd?

jimyoung 06-19-2016 07:56 AM

smb password
 
have not seen a place for password can you give example i have tried the 644 and 755 i have a folder called server that i have files in and can see and map but do not have permission to do anything

keefaz 06-19-2016 10:08 AM

You have to give write rights for your users in server directory if you want to allow them to change things into it
Maybe by adding a group (groupadd) in the server for them, add each user to this group (usermod), then change server directory permission to 0775 (chmod) and change its group ownership to the new users group (chgrp)

jimyoung 06-19-2016 03:04 PM

user grp
 
where does this go ? in the smb.conf file i amd sorry to so dumb this i first debian or linux i have done windows for last 30 + years

keefaz 06-19-2016 05:26 PM

Do your 5 users exist in your debian system? If not you have to create them, create a group for them and set the shared server directory permissions so they can write into it

jimyoung 06-20-2016 06:49 AM

users
 
yes i users created for all 5 users but i don't any place to add a group will read debian again and see if i missed it this may be the problem. i set the passwords again with smbpasswd but it still tells me incorrect password when i try to access from windows.

keefaz 06-20-2016 08:01 AM

To create a group, just do: ' groupadd workers '
(where workers is the group name)

To make jimyoung user member of this group: ' usermod -a -G workers jimyoung '

jimyoung 06-20-2016 09:27 AM

groupadd
 
thanks Keefaz that sounds easy will try that and let you know


All times are GMT -5. The time now is 01:15 AM.