Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I installed CentOS 6 and Samba, My Samba config is :
Code:
[Mahalle-PDF]
path=/mnt/c/archive-pdf
browsable = yes
guest ok = no
read only = yes
available = yes
valid users = @mygroup
I use "sudo smbpasswd -a <user_name>" and add my users to Samba then i use below commands to give permission to "archive-pdf" directory :
chgrp -R mygroup archive-pdf/
chmod -R g+rwx archive-pdf/
but, I can't browse the directory in windows and it show me an error about permission, Can you advice me?
We can't tell you ANYTHING since you don't tell us what the error is. Just saying "error about permission" could be any one of several causes. You also don't tell us what the permissions are on that directory, and where the /mnt/c/archive-pdf directory points to. Is that shared to another machine? What filesystem? ANYTHING from the logs??
Hello.
Thank you so much. When I want to browse the IP, Windows tell me :
"You might not have permission to use this network resource. Contact the administratior of this server to find out if you have access permissions."
TB0ne, I mount /dev/sdb to /mnt/c and file system is Ext4. In your opinion is it my problem?
You STILL don't give us
Anything from the log files
Permissions on that directory
...as asked previously, which has been mentioned to you several times in the past on other threads of yours. Making people guess at things and ask for the same information over and over, isn't good. Provide details and answer questions when asked, or posting threads is pointless.
The VERY OBVIOUS things to check would be permissions on that directory. And your mount command is confusing, since you say you're mounting an entire DEVICE (not a partition ON that device), to /mnt/c. What are the permissions on /mnt/c? And on /mnt/c/archive-pdf?
Quote:
With my scenario, Can you show me a correct config?
No, we can't, since you STILL don't provide enough details about your 'scenario' for us to guess at. A 'correct' config would assume we know what your environment looks like...and all we know is a few lines of one config file.
If you see the first comment, I said that i used "chmod -R g+rwx archive-pdf/".
In your opinion is it necessary to give permission on /mnt/c? I want my users just access to "archive-pdf" and this directory is under the /mnt/c.
If you see the first comment, I said that i used "chmod -R g+rwx archive-pdf/".
Yes, saw that. What we DIDN'T see is you actually posting the output of the "ls -l" command, showing us what permissions you had on that directory, in that location. And if the group doesn't have permission to read /mnt/c, they won't be able to traverse any lower in the tree, to see the directory, will they??
AGAIN: answer questions asked of you, or don't post.
Quote:
In your opinion is it necessary to give permission on /mnt/c? I want my users just access to "archive-pdf" and this directory is under the /mnt/c.
It is necessary to have the CORRECT permissions...which you STILL DON'T SHOW US, and STILL don't show us anything from your logs. If you're not going to answer questions asked of you, there isn't much point in posting.
Ok...and you STILL AREN'T ANSWERING QUESTIONS. You have been asked SEVERAL TIMES to give us things from your log files, and haven't. You have been asked several times to show us permissions on the /mnt/c, and haven't. We had to ask THREE TIMES to get you to do this, and you STILL ignore the other questions.
Asking things over and over doesn't make people want to help you....either answer the questions asked of you, or don't bother posting.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.