LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-18-2016, 10:33 AM   #1
jimyoung
LQ Newbie
 
Registered: Jun 2016
Posts: 22

Rep: Reputation: Disabled
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

Last edited by jimyoung; 06-18-2016 at 10:35 AM. Reason: for got os
 
Old 06-18-2016, 11:18 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,387

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
You mean a public directory in the server?
 
Old 06-18-2016, 01:13 PM   #3
jimyoung
LQ Newbie
 
Registered: Jun 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
yes a public that 5 users can use

yes and 5 users can execute a setup file in windows with
 
Old 06-18-2016, 04:31 PM   #4
jimyoung
LQ Newbie
 
Registered: Jun 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
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
 
Old 06-18-2016, 05:31 PM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,387

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
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

Last edited by keefaz; 06-18-2016 at 05:33 PM.
 
Old 06-18-2016, 05:45 PM   #6
jimyoung
LQ Newbie
 
Registered: Jun 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
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
 
Old 06-18-2016, 06:52 PM   #7
jimyoung
LQ Newbie
 
Registered: Jun 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
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.
 
Old 06-18-2016, 08:57 PM   #8
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,387

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
checked permissions for shared dir? Users registered in samba db with smbpasswd?
 
Old 06-19-2016, 08:56 AM   #9
jimyoung
LQ Newbie
 
Registered: Jun 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
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
 
Old 06-19-2016, 11:08 AM   #10
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,387

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
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)
 
Old 06-19-2016, 04:04 PM   #11
jimyoung
LQ Newbie
 
Registered: Jun 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
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
 
Old 06-19-2016, 06:26 PM   #12
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,387

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
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
 
Old 06-20-2016, 07:49 AM   #13
jimyoung
LQ Newbie
 
Registered: Jun 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
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.
 
Old 06-20-2016, 09:01 AM   #14
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,387

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
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 '
 
Old 06-20-2016, 10:27 AM   #15
jimyoung
LQ Newbie
 
Registered: Jun 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
groupadd

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


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
Copy a directory into another directory while ignoring specific directories or files wh33t Linux - Newbie 14 05-16-2012 09:13 PM
find files with pattern, then copy those files to another directory ncsuapex Programming 4 08-13-2010 04:38 PM
How to Copy files from local directory to a particular directory using alias dynamics Linux - Newbie 7 09-11-2009 05:19 PM
How to copy files after search in array from this directory to another directory! phanvinhgiap Programming 4 01-04-2009 07:48 PM
copy files from directory to directory without subfile ALInux Linux - General 2 06-03-2005 12:51 PM


All times are GMT -5. The time now is 06:51 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration