Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Fedora / samba file permissions

Posted on 2011-03-22
3
Medium Priority
?
339 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 1000 total points
ID: 35195594
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
ID: 35195649
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 1000 total points
ID: 35197490
Hi,

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

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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month10 days, 13 hours left to enroll

886 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