Samba: allow insecure wide links Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Come Celebrate our 10 Year Anniversary!Samba Permissions - I'm going to throw it!Can't create or follow symlinks from linux client with a cifs mounted Windows Server 2008 R2 shareBest Management Practices for using Winbind?Can Samba “security = user” be used for guest share without Windows login prompt?Can't access samba share over VPNConfiguring a truly world-writable directory for SambaImport Active Directory users into Unix/Linux/FreeBSD groupSamba Ignoring POSIX ACLsSamba Security - Set permissions for anyone write on share (root and others)Cannot share /proc/<pid>/root in dockerized samba

WAN encapsulation

"Seemed to had" is it correct?

Check which numbers satisfy the condition [A*B*C = A! + B! + C!]

What are the motives behind Cersei's orders given to Bronn?

How do I mention the quality of my school without bragging

Storing hydrofluoric acid before the invention of plastics

Single word antonym of "flightless"

Is the Standard Deduction better than Itemized when both are the same amount?

Right-skewed distribution with mean equals to mode?

How can I make names more distinctive without making them longer?

Why is black pepper both grey and black?

Are my PIs rude or am I just being too sensitive?

When is phishing education going too far?

How to deal with a team lead who never gives me credit?

The logistics of corpse disposal

Should I call the interviewer directly, if HR aren't responding?

Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?

Can inflation occur in a positive-sum game currency system such as the Stack Exchange reputation system?

How do I determine if the rules for a long jump or high jump are applicable for Monks?

Is there a documented rationale why the House Ways and Means chairman can demand tax info?

If a contract sometimes uses the wrong name, is it still valid?

How much radiation do nuclear physics experiments expose researchers to nowadays?

Should I use Javascript Classes or Apex Classes in Lightning Web Components?

Is there a service that would inform me whenever a new direct route is scheduled from a given airport?



Samba: allow insecure wide links



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Samba Permissions - I'm going to throw it!Can't create or follow symlinks from linux client with a cifs mounted Windows Server 2008 R2 shareBest Management Practices for using Winbind?Can Samba “security = user” be used for guest share without Windows login prompt?Can't access samba share over VPNConfiguring a truly world-writable directory for SambaImport Active Directory users into Unix/Linux/FreeBSD groupSamba Ignoring POSIX ACLsSamba Security - Set permissions for anyone write on share (root and others)Cannot share /proc/<pid>/root in dockerized samba



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








5















allow insecure wide links:




In normal operation the option wide links which allows the server to
follow symlinks outside of a share path is automatically disabled when
unix extensions are enabled on a Samba server. This is done for
security purposes to prevent UNIX clients creating symlinks to areas
of the server file system that the administrator does not wish to
export.



Setting allow insecure wide links to true disables the link between
these two parameters, removing this protection and allowing a site to
configure the server to follow symlinks (by setting wide links to
"true") even when unix extensions is turned on.




According to manual setting allow insecure wide links = yes should be enough to allow symlinks outside the shared path however it's not working for me unless I set unix extensions = no.



testparm is not even showing this variable?!



# testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Public]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
workgroup = test
server string = SambaBox
syslog = 0
log file = /var/log/samba/smb.log
max log size = 50
smb ports = 139
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
load printers = No
printcap name = /dev/null
disable spoolss = Yes
show add printer wizard = No
idmap config * : backend = tdb

[Public]
comment = Public
path = /data/Public
valid users = smbguest
create mask = 0644
force create mode = 0644
force directory mode = 0755
map archive = No
wide links = Yes









share|improve this question

















  • 1





    If testparm doesn't show a variable, then it is set to the default value.

    – Cameron Kerr
    Apr 22 '15 at 9:40






  • 2





    If pointing to the directory proves unworkable, perhaps a bind mount would work (something like mount -o bind /a_dir /here_also).

    – Cameron Kerr
    Apr 22 '15 at 9:43

















5















allow insecure wide links:




In normal operation the option wide links which allows the server to
follow symlinks outside of a share path is automatically disabled when
unix extensions are enabled on a Samba server. This is done for
security purposes to prevent UNIX clients creating symlinks to areas
of the server file system that the administrator does not wish to
export.



Setting allow insecure wide links to true disables the link between
these two parameters, removing this protection and allowing a site to
configure the server to follow symlinks (by setting wide links to
"true") even when unix extensions is turned on.




According to manual setting allow insecure wide links = yes should be enough to allow symlinks outside the shared path however it's not working for me unless I set unix extensions = no.



testparm is not even showing this variable?!



# testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Public]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
workgroup = test
server string = SambaBox
syslog = 0
log file = /var/log/samba/smb.log
max log size = 50
smb ports = 139
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
load printers = No
printcap name = /dev/null
disable spoolss = Yes
show add printer wizard = No
idmap config * : backend = tdb

[Public]
comment = Public
path = /data/Public
valid users = smbguest
create mask = 0644
force create mode = 0644
force directory mode = 0755
map archive = No
wide links = Yes









share|improve this question

















  • 1





    If testparm doesn't show a variable, then it is set to the default value.

    – Cameron Kerr
    Apr 22 '15 at 9:40






  • 2





    If pointing to the directory proves unworkable, perhaps a bind mount would work (something like mount -o bind /a_dir /here_also).

    – Cameron Kerr
    Apr 22 '15 at 9:43













5












5








5








allow insecure wide links:




In normal operation the option wide links which allows the server to
follow symlinks outside of a share path is automatically disabled when
unix extensions are enabled on a Samba server. This is done for
security purposes to prevent UNIX clients creating symlinks to areas
of the server file system that the administrator does not wish to
export.



Setting allow insecure wide links to true disables the link between
these two parameters, removing this protection and allowing a site to
configure the server to follow symlinks (by setting wide links to
"true") even when unix extensions is turned on.




According to manual setting allow insecure wide links = yes should be enough to allow symlinks outside the shared path however it's not working for me unless I set unix extensions = no.



testparm is not even showing this variable?!



# testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Public]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
workgroup = test
server string = SambaBox
syslog = 0
log file = /var/log/samba/smb.log
max log size = 50
smb ports = 139
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
load printers = No
printcap name = /dev/null
disable spoolss = Yes
show add printer wizard = No
idmap config * : backend = tdb

[Public]
comment = Public
path = /data/Public
valid users = smbguest
create mask = 0644
force create mode = 0644
force directory mode = 0755
map archive = No
wide links = Yes









share|improve this question














allow insecure wide links:




In normal operation the option wide links which allows the server to
follow symlinks outside of a share path is automatically disabled when
unix extensions are enabled on a Samba server. This is done for
security purposes to prevent UNIX clients creating symlinks to areas
of the server file system that the administrator does not wish to
export.



Setting allow insecure wide links to true disables the link between
these two parameters, removing this protection and allowing a site to
configure the server to follow symlinks (by setting wide links to
"true") even when unix extensions is turned on.




According to manual setting allow insecure wide links = yes should be enough to allow symlinks outside the shared path however it's not working for me unless I set unix extensions = no.



testparm is not even showing this variable?!



# testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Public]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
workgroup = test
server string = SambaBox
syslog = 0
log file = /var/log/samba/smb.log
max log size = 50
smb ports = 139
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
load printers = No
printcap name = /dev/null
disable spoolss = Yes
show add printer wizard = No
idmap config * : backend = tdb

[Public]
comment = Public
path = /data/Public
valid users = smbguest
create mask = 0644
force create mode = 0644
force directory mode = 0755
map archive = No
wide links = Yes






samba






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 19 '15 at 10:35









HTFHTF

1,04993868




1,04993868







  • 1





    If testparm doesn't show a variable, then it is set to the default value.

    – Cameron Kerr
    Apr 22 '15 at 9:40






  • 2





    If pointing to the directory proves unworkable, perhaps a bind mount would work (something like mount -o bind /a_dir /here_also).

    – Cameron Kerr
    Apr 22 '15 at 9:43












  • 1





    If testparm doesn't show a variable, then it is set to the default value.

    – Cameron Kerr
    Apr 22 '15 at 9:40






  • 2





    If pointing to the directory proves unworkable, perhaps a bind mount would work (something like mount -o bind /a_dir /here_also).

    – Cameron Kerr
    Apr 22 '15 at 9:43







1




1





If testparm doesn't show a variable, then it is set to the default value.

– Cameron Kerr
Apr 22 '15 at 9:40





If testparm doesn't show a variable, then it is set to the default value.

– Cameron Kerr
Apr 22 '15 at 9:40




2




2





If pointing to the directory proves unworkable, perhaps a bind mount would work (something like mount -o bind /a_dir /here_also).

– Cameron Kerr
Apr 22 '15 at 9:43





If pointing to the directory proves unworkable, perhaps a bind mount would work (something like mount -o bind /a_dir /here_also).

– Cameron Kerr
Apr 22 '15 at 9:43










1 Answer
1






active

oldest

votes


















0














If you enabled wide link support but it does not work, SELINUX is probably blocking you.



Try to issue setenforce 0 and to retest your configuration. If it works, then you found your problem's source.



If this does not work, in [global] section add:



  • wide links = yes

  • allow insecure wide links = yes

  • unix extensions = no

Than restart samba and re-try your test case.






share|improve this answer

























  • Unfortunately it's not SELinux, I've disabled it in order to test this.

    – HTF
    Apr 19 '15 at 14:55











  • I've edited my answer, give it a look.

    – shodanshok
    Apr 19 '15 at 15:29











  • Yes, that works however I don't want to disable unix extensions and if I understand manual correctly allow insecure wide links = yes should help but it doesn't work for me.

    – HTF
    Apr 19 '15 at 20:54






  • 3





    From my experience I found every second paragraph in the samba man pages to provide unclear or inconsistent information. The only way to achieve what you want is by setting this variables mentioned by @shodanshok. This is what I did and it works like a charm. Make sure you understand what the 'unix extensions' are how they can help. But honestly speaking they tend to cause issues with permissions. Plus they make no difference to the Windows clients, so why keep it on?

    – koullislp
    Apr 24 '15 at 13:06











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
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',
autoActivateHeartbeat: false,
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
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f683844%2fsamba-allow-insecure-wide-links%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









0














If you enabled wide link support but it does not work, SELINUX is probably blocking you.



Try to issue setenforce 0 and to retest your configuration. If it works, then you found your problem's source.



If this does not work, in [global] section add:



  • wide links = yes

  • allow insecure wide links = yes

  • unix extensions = no

Than restart samba and re-try your test case.






share|improve this answer

























  • Unfortunately it's not SELinux, I've disabled it in order to test this.

    – HTF
    Apr 19 '15 at 14:55











  • I've edited my answer, give it a look.

    – shodanshok
    Apr 19 '15 at 15:29











  • Yes, that works however I don't want to disable unix extensions and if I understand manual correctly allow insecure wide links = yes should help but it doesn't work for me.

    – HTF
    Apr 19 '15 at 20:54






  • 3





    From my experience I found every second paragraph in the samba man pages to provide unclear or inconsistent information. The only way to achieve what you want is by setting this variables mentioned by @shodanshok. This is what I did and it works like a charm. Make sure you understand what the 'unix extensions' are how they can help. But honestly speaking they tend to cause issues with permissions. Plus they make no difference to the Windows clients, so why keep it on?

    – koullislp
    Apr 24 '15 at 13:06















0














If you enabled wide link support but it does not work, SELINUX is probably blocking you.



Try to issue setenforce 0 and to retest your configuration. If it works, then you found your problem's source.



If this does not work, in [global] section add:



  • wide links = yes

  • allow insecure wide links = yes

  • unix extensions = no

Than restart samba and re-try your test case.






share|improve this answer

























  • Unfortunately it's not SELinux, I've disabled it in order to test this.

    – HTF
    Apr 19 '15 at 14:55











  • I've edited my answer, give it a look.

    – shodanshok
    Apr 19 '15 at 15:29











  • Yes, that works however I don't want to disable unix extensions and if I understand manual correctly allow insecure wide links = yes should help but it doesn't work for me.

    – HTF
    Apr 19 '15 at 20:54






  • 3





    From my experience I found every second paragraph in the samba man pages to provide unclear or inconsistent information. The only way to achieve what you want is by setting this variables mentioned by @shodanshok. This is what I did and it works like a charm. Make sure you understand what the 'unix extensions' are how they can help. But honestly speaking they tend to cause issues with permissions. Plus they make no difference to the Windows clients, so why keep it on?

    – koullislp
    Apr 24 '15 at 13:06













0












0








0







If you enabled wide link support but it does not work, SELINUX is probably blocking you.



Try to issue setenforce 0 and to retest your configuration. If it works, then you found your problem's source.



If this does not work, in [global] section add:



  • wide links = yes

  • allow insecure wide links = yes

  • unix extensions = no

Than restart samba and re-try your test case.






share|improve this answer















If you enabled wide link support but it does not work, SELINUX is probably blocking you.



Try to issue setenforce 0 and to retest your configuration. If it works, then you found your problem's source.



If this does not work, in [global] section add:



  • wide links = yes

  • allow insecure wide links = yes

  • unix extensions = no

Than restart samba and re-try your test case.







share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 19 '15 at 15:28

























answered Apr 19 '15 at 11:21









shodanshokshodanshok

26.8k34788




26.8k34788












  • Unfortunately it's not SELinux, I've disabled it in order to test this.

    – HTF
    Apr 19 '15 at 14:55











  • I've edited my answer, give it a look.

    – shodanshok
    Apr 19 '15 at 15:29











  • Yes, that works however I don't want to disable unix extensions and if I understand manual correctly allow insecure wide links = yes should help but it doesn't work for me.

    – HTF
    Apr 19 '15 at 20:54






  • 3





    From my experience I found every second paragraph in the samba man pages to provide unclear or inconsistent information. The only way to achieve what you want is by setting this variables mentioned by @shodanshok. This is what I did and it works like a charm. Make sure you understand what the 'unix extensions' are how they can help. But honestly speaking they tend to cause issues with permissions. Plus they make no difference to the Windows clients, so why keep it on?

    – koullislp
    Apr 24 '15 at 13:06

















  • Unfortunately it's not SELinux, I've disabled it in order to test this.

    – HTF
    Apr 19 '15 at 14:55











  • I've edited my answer, give it a look.

    – shodanshok
    Apr 19 '15 at 15:29











  • Yes, that works however I don't want to disable unix extensions and if I understand manual correctly allow insecure wide links = yes should help but it doesn't work for me.

    – HTF
    Apr 19 '15 at 20:54






  • 3





    From my experience I found every second paragraph in the samba man pages to provide unclear or inconsistent information. The only way to achieve what you want is by setting this variables mentioned by @shodanshok. This is what I did and it works like a charm. Make sure you understand what the 'unix extensions' are how they can help. But honestly speaking they tend to cause issues with permissions. Plus they make no difference to the Windows clients, so why keep it on?

    – koullislp
    Apr 24 '15 at 13:06
















Unfortunately it's not SELinux, I've disabled it in order to test this.

– HTF
Apr 19 '15 at 14:55





Unfortunately it's not SELinux, I've disabled it in order to test this.

– HTF
Apr 19 '15 at 14:55













I've edited my answer, give it a look.

– shodanshok
Apr 19 '15 at 15:29





I've edited my answer, give it a look.

– shodanshok
Apr 19 '15 at 15:29













Yes, that works however I don't want to disable unix extensions and if I understand manual correctly allow insecure wide links = yes should help but it doesn't work for me.

– HTF
Apr 19 '15 at 20:54





Yes, that works however I don't want to disable unix extensions and if I understand manual correctly allow insecure wide links = yes should help but it doesn't work for me.

– HTF
Apr 19 '15 at 20:54




3




3





From my experience I found every second paragraph in the samba man pages to provide unclear or inconsistent information. The only way to achieve what you want is by setting this variables mentioned by @shodanshok. This is what I did and it works like a charm. Make sure you understand what the 'unix extensions' are how they can help. But honestly speaking they tend to cause issues with permissions. Plus they make no difference to the Windows clients, so why keep it on?

– koullislp
Apr 24 '15 at 13:06





From my experience I found every second paragraph in the samba man pages to provide unclear or inconsistent information. The only way to achieve what you want is by setting this variables mentioned by @shodanshok. This is what I did and it works like a charm. Make sure you understand what the 'unix extensions' are how they can help. But honestly speaking they tend to cause issues with permissions. Plus they make no difference to the Windows clients, so why keep it on?

– koullislp
Apr 24 '15 at 13:06

















draft saved

draft discarded
















































Thanks for contributing an answer to Server Fault!


  • 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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f683844%2fsamba-allow-insecure-wide-links%23new-answer', 'question_page');

);

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







Popular posts from this blog

Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company