---
name: "URI::smb"
section: "3pm"
platform: "linux"
package: "perl-uri"
version: "5.40-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/URI::smb"
---

# URI::smb(3pm)

Samba/CIFS URI scheme

## NAME

URI::smb - Samba/CIFS URI scheme

## SYNOPSIS

```
    my $uri = URI->new('smb://authdomain;user:password@server/share/path');
```

## DESCRIPTION

This module implements the (unofficial) `"smb:"` URI scheme described in \<http://www.ubiqx.org/cifs/Appendix-D.html\>.

## SUBROUTINES/METHODS

### default\_port

The default port for accessing Samba/Windows File Servers is 445

### user

Get or set the user part of the URI (without the authdomain)

### authdomain

Get or set the authentication authdomain part of the URI. This value is only available if the user is already set.

### sharename

Helper method to get the share name from path

## DEPENDENCIES

None

## BUGS AND LIMITATIONS

See URI

## SEE ALSO

\<http://www.ubiqx.org/cifs/Appendix-D.html\>

## AUTHOR

I. M. Bur \<github@lty.cz\>

## LICENSE AND COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See \<http://dev.perl.org/licenses/\> for more information.
