What permissions should this share have to realize my target objective?
UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
The share definition of the “dataplusmediafiles” share is as follows :-
[dataplusmediafiles]
path = /media/dataplusmediafiles
browsable = yes
writable = yes
guest = ok
read only = no
public = yes
guest account = nobody
force user = nobody
create mask = 777
admin users = agarwaldvk
Given that the default umask is 002 in Ubuntu, shouldn’t the permissions of the sub-folders “share4data” and “share4media” be 775 with the world not having write permissions? But as at now, anyone can read, write and execute on all the files and directories in there without having to enter a password.
The output of the commands :-
“ls –ld /media/dataplusmediafiles/share4media/” and
“ls –ld /media/dataplusmediafiles/share4data/”
show 777 permissions for both of these sub folders. How is that?
agarwaldvk@MyHomeServer:~$ ls -ld /media/dataplusmediafiles/share4media/
drwxrwxrwx 1 root root 4096 Nov 4 09:10 /media/dataplusmediafiles/share4media/
agarwaldvk@MyHomeServer:~$ ls -ld /media/dataplusmediafiles/share4data
drwxrwxrwx 1 root root 4096 Nov 12 07:18 /media/dataplusmediafiles/share4data
Could someone please advise, what should my share configuration be like so that I, as the administrator (user – agarwaldvk), only can made modifications to the files and directories within the sub-folder “share4media” with everyone else able to read and browse through it and all of its sub directories and execute all of the files there as well without requiring a password. All the files therein are media files in that they are either image, video or music files.
Or should I be creating a separate share for "/media/dataplusmediafiles/share4media" path with the appropriate permissions to meet the above need?
The share definition of the “dataplusmediafiles” share is as follows :-
[dataplusmediafiles]
path = /media/dataplusmediafiles
browsable = yes
writable = yes
guest = ok
read only = no
public = yes
guest account = nobody
force user = nobody
create mask = 777
admin users = agarwaldvk
Given that the default umask is 002 in Ubuntu, shouldn’t the permissions of the sub-folders “share4data” and “share4media” be 775 with the world not having write permissions? But as at now, anyone can read, write and execute on all the files and directories in there without having to enter a password.
The output of the commands :-
“ls –ld /media/dataplusmediafiles/share4media/” and
“ls –ld /media/dataplusmediafiles/share4data/”
show 777 permissions for both of these sub folders. How is that?
agarwaldvk@MyHomeServer:~$ ls -ld /media/dataplusmediafiles/share4media/
drwxrwxrwx 1 root root 4096 Nov 4 09:10 /media/dataplusmediafiles/share4media/
agarwaldvk@MyHomeServer:~$ ls -ld /media/dataplusmediafiles/share4data
drwxrwxrwx 1 root root 4096 Nov 12 07:18 /media/dataplusmediafiles/share4data
Could someone please advise, what should my share configuration be like so that I, as the administrator (user – agarwaldvk), only can made modifications to the files and directories within the sub-folder “share4media” with everyone else able to read and browse through it and all of its sub directories and execute all of the files there as well without requiring a password. All the files therein are media files in that they are either image, video or music files. Or should I be creating a separate share for "/media/dataplusmediafiles/share4media" path with the appropriate permissions to meet the above need?
...and, a little over 24 hours later:
Quote:
Originally Posted by agarwaldvk
Hi
Any suggestions on this one please?
Read the LQ Rules and posting guidelines...we volunteer our time here, so expecting us to hurry up and answer you is fairly rude. Don't post follow-ups unless you're going to actually provide more information. And all you've really managed to do is to remove your post from the zero-reply list, making it LESS LIKELY to be visible and LESS LIKELY to get help.
First of all, let me apologize for having said the wrong thing. It was never the intent to expect a response in the immediate. I just thought that I would say it so that this post doesn't get lost among the many that are made on this very information and good forum.
Bot of those posts are indeed similar but because of my limited understanding of the Linux system as such and just to keep the context independent of any other post, I thought that it might be better if I made the context clearer for those who may not read the other post of mine. Also, the other post was getting very long as well so I thought its best to create a new post with one issue to address in one post.
I am hopeful that this would clarify the situation. I once again, unconditionally apologize if I may have inadvertently broken or or more of the forum posting rules and also may have offended anyone.
I don't use Samba or ntfs but what you show in your smb.conf file for that directory would indicate anyone accessing it has full permissions. You might try changing these entries or wait for someone more knowledgeable on samba to answer.
Hi TBOne
First of all, let me apologize for having said the wrong thing. It was never the intent to expect a response in the immediate. I just thought that I would say it so that this post doesn't get lost among the many that are made on this very information and good forum.
Fine, but you really need to read the forum rules, and apply some basic common sense when posting. The guidelines are not to bump your own threads, unless you're providing more information/clarification to what's been already posted. And as said, posting "any suggestions?" does NOTHING to make it more visible, but only serves to make it LESS VISIBLE. It goes from "zero reply" to "been replied to", so people are LESS LIKELY to do anything at that point.
Quote:
Bot of those posts are indeed similar but because of my limited understanding of the Linux system as such and just to keep the context independent of any other post, I thought that it might be better if I made the context clearer for those who may not read the other post of mine. Also, the other post was getting very long as well so I thought its best to create a new post with one issue to address in one post.
Both posts ask the same question, regarding the same directory, with samba being the focus. This falls under "posting the same question multiple times"...again, please read the LQ Rules and posting guidelines.
Understand that. In the interest of not adding any further confusion, I think its best that I request the moderator to delete all of my postings including this one. They are all very trial and don't add any value to anyone and when I have fully understood the forum posting rules, I shall post again. In the meanwhile, I do extend my most sincere thanks and appreciation for all the help afforded to me so far.
P.S.
The Moderator - Could you please delete all of my (username = agarwaldvk) postings from all the forums - as I believe that are very trivial in nature and don't add any value to anyone and all they are doing is just adding confusion. I once again unreservedly apologize to have unintentionally caused grief to the forum users.
You're welcome and invited to ask any questions (albeit not duplicate ones) that LQ can handle, period. So no, I see no reason to delete your posts. Apart from that any advice given like yancek did would loose its meaning. So the only thing I'm going to do is close this one as a duplicate thread. Also some advice may come across as a bit confrontational so feel free to ignore the way a fellow member posted advice as long as you understand the essence of it. Any questions feel free to email me or any other moderator, OK?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.