LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-13-2003, 02:46 PM   #1
jimmydunes
LQ Newbie
 
Registered: Jan 2003
Posts: 4

Rep: Reputation: 0
samba help please


Hello all...

New to linux (obviously)

I have been tasked with setting up a Samba server at work. It is a school. I am net admin, help desk and on-site support and I am going out of my mind with calls and jobs.. so I could really use some help to get this up and running as quickly as possible. So thanks in advance.

I have all stations browsing to home directories just fine no problems there. What I need is a common directory so the students can read their lessons... the instructor is the only user with write and execute access to this dir. Also, the instructor need sufficient rights to browse all students directories in order to grade files. This is an Adobe Graphics class by the way.

I've tried so many things in the smb.conf that I have been turned around completely and I don't know what to try next.

Thanks again...
 
Old 01-13-2003, 05:14 PM   #2
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Check out this for more info on how to set up the instructors:

http://www.linuxquestions.org/questi...ghlight=KevinJ

You will be changing things on the "common" directory though instead of the home directory.

Now, creating a simple Samba directory share is not diffcult and you should be able to accomplish that just by reading the smb.conf. There are plenty of examples in that file.

What exactly are you having trouble with?

-KevinJ
 
Old 01-13-2003, 11:13 PM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
[someshare]
comment = Your Comment
path = /somefolder
read only = yes
write list = @teachers


create a group called teachers and add the teachers to it
 
Old 01-13-2003, 11:17 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
[Public]
comment = Public Folder (Share Files Here)
path = /home/pub
invalid users = *
valid users = @users
read only = No


add whoever you want to access it to the users group or pick another group to use
this one by default everyone will have read access to everything. But they will own their files. No one can delete others files
 
Old 01-13-2003, 11:35 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
check this out for an example of several groups

http://www.linuxquestions.org/questi...8800#post38800
 
Old 01-14-2003, 09:50 AM   #6
jimmydunes
LQ Newbie
 
Registered: Jan 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you...

Here is what is working right now...

1. Home directories are visible and writable from win98 stations.
2. Public folder is visible and read only.


Not working...

1. Users in root group cannot write to public folder from windows


[global]
workgroup = workgroup name
log file = /var/log/samba/%m.log
max log size = 50
security = user
encrypt passwords = no
smb passwd file = /etc/samba/smbpasswd\



[homes]
comment = Lesson Folders
browseable = no
writable = yes
create mode = 0664
directory mode = 0775

[public]
path = /usr/public
public = yes
write list = root

I haven't moved on to the instructor section yet... thanks for all the help fellas
 
Old 01-14-2003, 10:44 AM   #7
jimmydunes
LQ Newbie
 
Registered: Jan 2003
Posts: 4

Original Poster
Rep: Reputation: 0
new problem... I don't remember doing anything different but now I cannot browse to the samba server from windows anymore. I was doing it just fine then after a reboot it was gone.

I can '\\ip address' but no browsing. Any ideas as to wht I could have done to cause this?
 
Old 01-14-2003, 11:04 AM   #8
jimmydunes
LQ Newbie
 
Registered: Jan 2003
Posts: 4

Original Poster
Rep: Reputation: 0
browser election problem.. solved

All problems are solved except 1...

I need the instructor to be able to log onto a windows machine and browse all of the students home directories. Am I allowed to share out the home directory so the instructor can see all folders inside it? or is that some sort of linux no-no?

Last edited by jimmydunes; 01-14-2003 at 11:34 AM.
 
Old 01-14-2003, 02:18 PM   #9
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you will need to make a group and chown .group everything they need to access, and maybe chmod it also


add the teacher to the group

see man smb.conf for details on using

force group
force create mode
force security mode
force directory mode
force directory security mode

homedir map

you can use homedir map to set the teachers home directory to be /home

instead of /home/$user

Last edited by DavidPhillips; 01-14-2003 at 02:23 PM.
 
  


Reply



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
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Samba - Connecting from WinXP Pro to Samba running on Debian critical Linux - Networking 1 02-03-2005 09:36 AM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:44 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
Open Source Consulting | Domain Registration