Sharing a Hard drive on Centos and using samba
up vote
0
down vote
favorite
I am having issues sharing a external hard drive using samba on centos. I am able to view the share group from my windows machine but when I attempt to accsess it, it says "you do not have permission to access"
I have tried the "force user = account" solution as well as the setting the group 777
I have included my configuration below
[global]
security = user
idmap config * :backend = tbd
printing = cups
printcap name = cups
load printers = yes
cups options = raw
netbios name= Centos
force user = Home
[homes]
comment = Home Directories
valid users = %S, %D%w%S, Home
browseable = No
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775
[homefiles]
#sharegroup for desktop
path = /srv/samba/homefiles
guest ok = Yes
browsable = Yes
writable = Yes
read only = no
force user = Home
[ExternalDrive]
#external drive 2tb
path = /run/media/Home/MYDRIVE
guest ok = yes
read only = no
force user = Home
browsable = yes
linux hard-drive permissions centos samba
add a comment |
up vote
0
down vote
favorite
I am having issues sharing a external hard drive using samba on centos. I am able to view the share group from my windows machine but when I attempt to accsess it, it says "you do not have permission to access"
I have tried the "force user = account" solution as well as the setting the group 777
I have included my configuration below
[global]
security = user
idmap config * :backend = tbd
printing = cups
printcap name = cups
load printers = yes
cups options = raw
netbios name= Centos
force user = Home
[homes]
comment = Home Directories
valid users = %S, %D%w%S, Home
browseable = No
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775
[homefiles]
#sharegroup for desktop
path = /srv/samba/homefiles
guest ok = Yes
browsable = Yes
writable = Yes
read only = no
force user = Home
[ExternalDrive]
#external drive 2tb
path = /run/media/Home/MYDRIVE
guest ok = yes
read only = no
force user = Home
browsable = yes
linux hard-drive permissions centos samba
Also I am unable to see the force user or browsable commands under testparm which may be where my problem is coming from
– Reisenrich
Nov 27 at 3:47
Once disable SElinux and check. Command to disable SElinux is 'setenforce 0'
– max
Nov 27 at 4:23
That did the trick! I am still not able to see the force user under testparm but I am not able to reach the drive from windows
– Reisenrich
Nov 27 at 13:20
I think it's because of in [global] section you already mentioned force user to Home. If you give some other name it will show in testparm.
– max
Nov 27 at 15:06
No dice on the removing force user under global to allow for the force user and browsable to show up under the external hard drive using testparm
– Reisenrich
Nov 28 at 16:07
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am having issues sharing a external hard drive using samba on centos. I am able to view the share group from my windows machine but when I attempt to accsess it, it says "you do not have permission to access"
I have tried the "force user = account" solution as well as the setting the group 777
I have included my configuration below
[global]
security = user
idmap config * :backend = tbd
printing = cups
printcap name = cups
load printers = yes
cups options = raw
netbios name= Centos
force user = Home
[homes]
comment = Home Directories
valid users = %S, %D%w%S, Home
browseable = No
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775
[homefiles]
#sharegroup for desktop
path = /srv/samba/homefiles
guest ok = Yes
browsable = Yes
writable = Yes
read only = no
force user = Home
[ExternalDrive]
#external drive 2tb
path = /run/media/Home/MYDRIVE
guest ok = yes
read only = no
force user = Home
browsable = yes
linux hard-drive permissions centos samba
I am having issues sharing a external hard drive using samba on centos. I am able to view the share group from my windows machine but when I attempt to accsess it, it says "you do not have permission to access"
I have tried the "force user = account" solution as well as the setting the group 777
I have included my configuration below
[global]
security = user
idmap config * :backend = tbd
printing = cups
printcap name = cups
load printers = yes
cups options = raw
netbios name= Centos
force user = Home
[homes]
comment = Home Directories
valid users = %S, %D%w%S, Home
browseable = No
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775
[homefiles]
#sharegroup for desktop
path = /srv/samba/homefiles
guest ok = Yes
browsable = Yes
writable = Yes
read only = no
force user = Home
[ExternalDrive]
#external drive 2tb
path = /run/media/Home/MYDRIVE
guest ok = yes
read only = no
force user = Home
browsable = yes
linux hard-drive permissions centos samba
linux hard-drive permissions centos samba
asked Nov 27 at 3:30
Reisenrich
11
11
Also I am unable to see the force user or browsable commands under testparm which may be where my problem is coming from
– Reisenrich
Nov 27 at 3:47
Once disable SElinux and check. Command to disable SElinux is 'setenforce 0'
– max
Nov 27 at 4:23
That did the trick! I am still not able to see the force user under testparm but I am not able to reach the drive from windows
– Reisenrich
Nov 27 at 13:20
I think it's because of in [global] section you already mentioned force user to Home. If you give some other name it will show in testparm.
– max
Nov 27 at 15:06
No dice on the removing force user under global to allow for the force user and browsable to show up under the external hard drive using testparm
– Reisenrich
Nov 28 at 16:07
add a comment |
Also I am unable to see the force user or browsable commands under testparm which may be where my problem is coming from
– Reisenrich
Nov 27 at 3:47
Once disable SElinux and check. Command to disable SElinux is 'setenforce 0'
– max
Nov 27 at 4:23
That did the trick! I am still not able to see the force user under testparm but I am not able to reach the drive from windows
– Reisenrich
Nov 27 at 13:20
I think it's because of in [global] section you already mentioned force user to Home. If you give some other name it will show in testparm.
– max
Nov 27 at 15:06
No dice on the removing force user under global to allow for the force user and browsable to show up under the external hard drive using testparm
– Reisenrich
Nov 28 at 16:07
Also I am unable to see the force user or browsable commands under testparm which may be where my problem is coming from
– Reisenrich
Nov 27 at 3:47
Also I am unable to see the force user or browsable commands under testparm which may be where my problem is coming from
– Reisenrich
Nov 27 at 3:47
Once disable SElinux and check. Command to disable SElinux is 'setenforce 0'
– max
Nov 27 at 4:23
Once disable SElinux and check. Command to disable SElinux is 'setenforce 0'
– max
Nov 27 at 4:23
That did the trick! I am still not able to see the force user under testparm but I am not able to reach the drive from windows
– Reisenrich
Nov 27 at 13:20
That did the trick! I am still not able to see the force user under testparm but I am not able to reach the drive from windows
– Reisenrich
Nov 27 at 13:20
I think it's because of in [global] section you already mentioned force user to Home. If you give some other name it will show in testparm.
– max
Nov 27 at 15:06
I think it's because of in [global] section you already mentioned force user to Home. If you give some other name it will show in testparm.
– max
Nov 27 at 15:06
No dice on the removing force user under global to allow for the force user and browsable to show up under the external hard drive using testparm
– Reisenrich
Nov 28 at 16:07
No dice on the removing force user under global to allow for the force user and browsable to show up under the external hard drive using testparm
– Reisenrich
Nov 28 at 16:07
add a comment |
1 Answer
1
active
oldest
votes
up vote
-1
down vote
It is possible to mount hard driver in other folder.
Example: /cdrom
.
How would OP do that? How would that help?
– bertieb
Nov 27 at 17:07
Thank you for your answer and welcome to Superuser. Although readers familiar with the subject might now what you mean, it would be helpful for everyone else to elaborate on your answer a little further. For example explain how to do this in a step by step manner and, if possible, add screen shots.
– Albin
Nov 27 at 17:26
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1378634%2fsharing-a-hard-drive-on-centos-and-using-samba%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
-1
down vote
It is possible to mount hard driver in other folder.
Example: /cdrom
.
How would OP do that? How would that help?
– bertieb
Nov 27 at 17:07
Thank you for your answer and welcome to Superuser. Although readers familiar with the subject might now what you mean, it would be helpful for everyone else to elaborate on your answer a little further. For example explain how to do this in a step by step manner and, if possible, add screen shots.
– Albin
Nov 27 at 17:26
add a comment |
up vote
-1
down vote
It is possible to mount hard driver in other folder.
Example: /cdrom
.
How would OP do that? How would that help?
– bertieb
Nov 27 at 17:07
Thank you for your answer and welcome to Superuser. Although readers familiar with the subject might now what you mean, it would be helpful for everyone else to elaborate on your answer a little further. For example explain how to do this in a step by step manner and, if possible, add screen shots.
– Albin
Nov 27 at 17:26
add a comment |
up vote
-1
down vote
up vote
-1
down vote
It is possible to mount hard driver in other folder.
Example: /cdrom
.
It is possible to mount hard driver in other folder.
Example: /cdrom
.
edited Nov 27 at 17:26
Albin
2,2921129
2,2921129
answered Nov 27 at 17:00
user966996
11
11
How would OP do that? How would that help?
– bertieb
Nov 27 at 17:07
Thank you for your answer and welcome to Superuser. Although readers familiar with the subject might now what you mean, it would be helpful for everyone else to elaborate on your answer a little further. For example explain how to do this in a step by step manner and, if possible, add screen shots.
– Albin
Nov 27 at 17:26
add a comment |
How would OP do that? How would that help?
– bertieb
Nov 27 at 17:07
Thank you for your answer and welcome to Superuser. Although readers familiar with the subject might now what you mean, it would be helpful for everyone else to elaborate on your answer a little further. For example explain how to do this in a step by step manner and, if possible, add screen shots.
– Albin
Nov 27 at 17:26
How would OP do that? How would that help?
– bertieb
Nov 27 at 17:07
How would OP do that? How would that help?
– bertieb
Nov 27 at 17:07
Thank you for your answer and welcome to Superuser. Although readers familiar with the subject might now what you mean, it would be helpful for everyone else to elaborate on your answer a little further. For example explain how to do this in a step by step manner and, if possible, add screen shots.
– Albin
Nov 27 at 17:26
Thank you for your answer and welcome to Superuser. Although readers familiar with the subject might now what you mean, it would be helpful for everyone else to elaborate on your answer a little further. For example explain how to do this in a step by step manner and, if possible, add screen shots.
– Albin
Nov 27 at 17:26
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1378634%2fsharing-a-hard-drive-on-centos-and-using-samba%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Also I am unable to see the force user or browsable commands under testparm which may be where my problem is coming from
– Reisenrich
Nov 27 at 3:47
Once disable SElinux and check. Command to disable SElinux is 'setenforce 0'
– max
Nov 27 at 4:23
That did the trick! I am still not able to see the force user under testparm but I am not able to reach the drive from windows
– Reisenrich
Nov 27 at 13:20
I think it's because of in [global] section you already mentioned force user to Home. If you give some other name it will show in testparm.
– max
Nov 27 at 15:06
No dice on the removing force user under global to allow for the force user and browsable to show up under the external hard drive using testparm
– Reisenrich
Nov 28 at 16:07