Solved

Fedora / samba file permissions

Posted on 2011-03-22
3
329 Views
Last Modified: 2012-05-11

drwxrwxrwx   2 guest1   guest1   4096 Mar 23 00:28 guest1
drwxrwxrwx   2 guest2   public   4096 Mar 23 01:35 guest2

guest1 works fine.

but guest2 is a problem.  When I log into his share - I see a load of linux files there.
How do I change this?
0
Comment
Question by:fcek
3 Comments
 
LVL 31

Accepted Solution

by:
farzanj earned 250 total points
Comment Utility
Do you want to a folder where both grahamr and guest1 would share files?

If so, why don't you put both of them into the same group.  Then give the folder the same group

#So lets say you want to make a group common

useradd common

 
#Add both the users to this group
usermod -G common grahamr
usermod -G common guest1

#lets say /share is the folder that they want to share
chown :common /share
chmod g+rwx /share

Open in new window


Now both the users can share files in this particular folder
0
 
LVL 29

Expert Comment

by:fosiul01
Comment Utility
whats the permission of those linux file

go to guest2

cd guest2

then type

ls -al


copy and past few out put here

0
 
LVL 6

Assisted Solution

by:mohansahu
mohansahu earned 250 total points
Comment Utility
Hi,

1.setfacl -m u:guest2: rwx /shared

2.chown -R guest2.guest2 /shared/
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now