LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-11-2004, 09:16 AM   #1
CarLost
Member
 
Registered: Jun 2004
Location: Sentado en mi trasero en Chile
Distribution: ArchLinux
Posts: 47

Rep: Reputation: 16
short smb question (create files)


Hi, I need to configure a samba server, but the data is very important.

Everyone can see it, sometimes change something,
a few ones have to create files, but I have to chage the owners manualy.
i.e. #chown -R root.administrators *
but not all directories...

well I need a way to change the owers or crate a file WITH this parameter at ones

please helpme!

PD: sorry, I'm a not good english-writer

 
Old 06-11-2004, 10:33 AM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
You will need to look into adding a number of parameters to the [share] in /etc/samba/smb.conf ...

"force user = whomever" forces any new file to be assigned to the user whomever.
"force group = whichever" does the same for the group.
A combination of these will replace the chown command.

"valid users = " lists who can access the share. Either by username or @groupname.
"invalid users = " lists who cannot access the share.
"read list = " lists who has read-only access.
"write list = " lists who has read-write access.
 
Old 06-11-2004, 10:58 AM   #3
CarLost
Member
 
Registered: Jun 2004
Location: Sentado en mi trasero en Chile
Distribution: ArchLinux
Posts: 47

Original Poster
Rep: Reputation: 16
Another question!

Thanks!!! a lot!

one more question! Can I put "everybody else" parameter in read list?. If I can. I must put that after or before the write list?
 
Old 06-11-2004, 02:58 PM   #4
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
I don't do a lot of Samba, but you should be able to set "read only = yes" and "write list = tom dick harry". This will set the default option to read only. Then, if Tom, Dick, or Harry access the share, they should be able to write.
 
Old 06-14-2004, 10:45 AM   #5
CarLost
Member
 
Registered: Jun 2004
Location: Sentado en mi trasero en Chile
Distribution: ArchLinux
Posts: 47

Original Poster
Rep: Reputation: 16
There is a way to give a diferent owner to an especific directory? without make a new shared dir???
 
Old 06-14-2004, 10:58 AM   #6
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
Don't quite understand what you are asking...

If you want to change the group of a directory, it's... "chown user.group directory". If you add the "-R" option, it will do the same to all the files/sub-directories inside the directory.
 
  


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
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 02:51 PM
Create and Delete a SMB printer tripwire45 Red Hat 2 01-08-2005 09:28 PM
how to create smb link ? mikeshn Linux - General 9 03-25-2004 09:30 PM
Weird question... Fastest way to create large arbitrary files? wizade Linux - Software 9 09-06-2003 04:37 AM
A short question about compiling again Al Bundy Linux - Newbie 3 06-12-2003 07:48 AM

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

All times are GMT -5. The time now is 07:22 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