Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-06-2007, 03:53 AM   #1
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, 03:56 AM   #2
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, 10:58 AM   #3
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:

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)


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 02:18 AM
Problem with chown fgagnon Linux - General 9 04-03-2005 09:35 PM
chown problem rafc Linux - Newbie 6 07-05-2004 11:18 PM
chown - samba question smuh Linux - Newbie 5 09-15-2003 07:05 AM
chown problem Ayesha Linux - Newbie 4 04-17-2002 09:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration