Displaying 6 results from an estimated 6 matches for "conn_rootdir".
2016 Jan 06
1
wide links and privileges
...the `check_reduced_name` and
`check_reduced_name_with_privilege` functions:
source3/smbd/vfs.c:
```
NTSTATUS check_reduced_name(connection_struct *conn, const char *fname)
[...]
/* Common widelinks and symlinks checks. */
if (!allow_widelinks || !allow_symlinks) {
[...]
if (strncmp(conn_rootdir, resolved_name,
rootdir_len) != 0) {
DEBUG(2, ("check_reduced_name: Bad access "
"attempt: %s is a symlink outside the "
"share path\n", fname));
```
and
```
NTSTATUS check_reduced_name_with_privilege(connec...
2016 Jan 06
3
wide links and privileges
...ame_with_privilege` functions:
>
> source3/smbd/vfs.c:
> ```
> NTSTATUS check_reduced_name(connection_struct *conn, const char *fname)
> [...]
> /* Common widelinks and symlinks checks. */
> if (!allow_widelinks || !allow_symlinks) {
> [...]
> if (strncmp(conn_rootdir, resolved_name,
> rootdir_len) != 0) {
> DEBUG(2, ("check_reduced_name: Bad access "
> "attempt: %s is a symlink outside the "
> "share path\n", fname));
>
> ```
> and
>
> ```
>...
2015 Dec 22
6
wide links and privileges
Hi,
I'm using samba version samba-4.1.6+dfsg included in last ubuntu LTS
version.
Here is my smb.conf file:
[global]
# configuration du serveur
netbios name = scribe
workgroup = dompedago
server string = scribe
preferred master = yes
domain logons = yes
security = user
ldap passwd sync = yes
passdb backend =
2016 Jan 07
0
wide links and privileges
...name_with_privilege` functions:
>
> source3/smbd/vfs.c:
> ```
> NTSTATUS check_reduced_name(connection_struct *conn, const char *fname)
> [...]
> /* Common widelinks and symlinks checks. */
> if (!allow_widelinks || !allow_symlinks) {
> [...]
> if (strncmp(conn_rootdir, resolved_name,
> rootdir_len) != 0) {
> DEBUG(2, ("check_reduced_name: Bad access "
> "attempt: %s is a symlink outside the "
> "share path\n", fname));
>
> ```
> and
>
> ```
> N...
2019 Nov 25
4
big share problem
...nternal)
nov. 25 19:05:31 myserver.mydomain smbd[75484]: change_to_user_internal:
chdir_current_service() failed!
The samba logs :
[2019/11/25 19:06:42.602821,? 2]
../source3/smbd/vfs.c:1305(check_reduced_name)
? check_reduced_name: Bad access attempt: . is a symlink outside the
share path
? conn_rootdir =/data/dir2
? resolved_name=/
[2019/11/25 19:06:42.602889,? 3]
../source3/smbd/filename.c:1382(get_real_filename_full_scan)
? scan dir didn't open dir [.]
[2019/11/25 19:06:42.602923,? 3]
../source3/smbd/smb2_server.c:3190(smbd_smb2_request_error_ex)
? smbd_smb2_request_error_ex: smbd_smb2...
2019 Nov 25
0
big share problem
...in smbd[75484]:
> change_to_user_internal: chdir_current_service() failed!
>
> The samba logs :
>
> [2019/11/25 19:06:42.602821,? 2]
> ../source3/smbd/vfs.c:1305(check_reduced_name)
> ? check_reduced_name: Bad access attempt: . is a symlink outside the
> share path
> ? conn_rootdir =/data/dir2
> ? resolved_name=/
> [2019/11/25 19:06:42.602889,? 3]
> ../source3/smbd/filename.c:1382(get_real_filename_full_scan)
> ? scan dir didn't open dir [.]
> [2019/11/25 19:06:42.602923,? 3]
> ../source3/smbd/smb2_server.c:3190(smbd_smb2_request_error_ex)
> ? smbd_...