LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-06-2007, 04:53 AM   #1
venki
Member
 
Registered: Sep 2006
Location: India
Distribution: suse10.2
Posts: 128

Rep: Reputation: 15
samba problem chown


HI there is a folder called test..
there are 2 users to access this test folder..

how can i give chown permissions to this directory
 
Old 02-06-2007, 04:56 AM   #2
wahming
Member
 
Registered: Jan 2007
Posts: 133

Rep: Reputation: 15
Put both users into a group, and assign group ownership for that folder.
 
Old 02-06-2007, 11:58 AM   #3
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Rep: Reputation: 32
So your folder looks like this right now or something like it anyway:

This is how my SAMBA is set:
/home/samba/media

BEFORE ownership changes ->
[server@server samba]$ ls -l
drwxrwxr-x 2 root root 4096 Feb 5 00:19 media


AND after you change the group from root (or whatever group it is to the group you want) it will look like this:

AFTER ownership changes ->
[brendan@SDM samba]$ ls -l
total 8
drwxrwxr-x 2 root group1 4096 Feb 5 00:19 media


(grouop1 being the group which you assign those two users to)
So you would type: chown root:group1 samba (group1 would be your group of the two users.)
chown (owner/user) : (group) (directory/file)
try chown --help or man chown

You may also need to change the read/write settings. I had a similar problem when I first was playing with SAMBA. Make the directory permissions 775 (owner/group/public)
 
  


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
[SOLVED] chown problem Wim Sturkenboom Linux - General 7 02-06-2007 03:18 AM
Problem with chown fgagnon Linux - General 9 04-03-2005 10:35 PM
chown problem rafc Linux - Newbie 6 07-06-2004 12:18 AM
chown - samba question smuh Linux - Newbie 5 09-15-2003 08:05 AM
chown problem Ayesha Linux - Newbie 4 04-17-2002 10:38 PM


All times are GMT -5. The time now is 04: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration