Skip to main content
17 votes
Accepted

Delete files and folders recursively in subdirectories

You can do it using following find command: find /path/to/transfer -mindepth 2 -delete -mindepth 2 parameter tells find to ignore first two level of directories: searched directory itself, and all ...
mrc02_kr's user avatar
  • 2,023
16 votes
Accepted

Samba: How to prevent Samba-server from auto-providing users /home-directory as a shared-folder?

Per @Nasir Riley's answer - That will keep the share from showing to anyone browsing the server for shares. However, the share is still available if you know that it exists. It would be much better ...
ivanivan's user avatar
  • 5,085
14 votes
Accepted

Why am I getting a "permission denied" trying to access a shared folder in Virtualbox?

Try adding yourself to the "vboxsf" group within the guest VM: sudo usermod -a -G vboxsf $(whoami) Note that you have to log out and log back in for this to take effect. After logging back in, check ...
igal's user avatar
  • 10.2k
11 votes
Accepted

Mount NFS - "operation not permitted" in Proxmox container

I found the issue. Basically, I've created a Debian unprivileged container in Proxmox. That means NFS is unavailable. Until now, I was unaware of that restriction while using Proxmox containers. To be ...
markfree's user avatar
  • 435
10 votes
Accepted

How to disable authentication requirement for VirtualBox's shared folder?

I had the same problem, and found the solution here: Note: Access to auto-mounted shared folders is only granted to the user group vboxsf, which is created by the VirtualBox Guest Additions ...
Joe's user avatar
  • 216
9 votes

Samba: How to prevent Samba-server from auto-providing users /home-directory as a shared-folder?

It is enough to include this line: available = no So the section should look something like this: [homes] comment = Home Directories available = no browseable = yes writable = yes valid users = %S ...
rug's user avatar
  • 91
7 votes
Accepted

How to create a shared folder

According to this, you want to set the setgid bit on the directory: $ chmod g+s shared_data All new files created in the directory will have the group set to the group of the directory.
head.honcho's user avatar
7 votes
Accepted

mount error(115): Operation now in progress

The issue ended up being that the route to the NAS was missing. Once the route was added, I was able to mount the drive with ease. route add-net x.x.x.x netmask x.x.x.x gw x.x.x.x Hopefully this ...
Joshua Schlichting's user avatar
7 votes

Where to find the shared folder in Kali Linux?

Both stackprotector's AND petoetje59's answer helped with this issue. cd /mnt/hgfs If the folder is missing --> sudo mkdir hgfs sudo vim /etc/fstab Enter vmhgfs-fuse /mnt/hgfs fuse defaults,...
c9eclipse's user avatar
6 votes

How to create a Samba share that is writable from Windows without 777 permissions?

In the share settings in smb.conf, you'll need to specify the names of users and/or groups that are allowed to write to the share, using a write list = ... line. Example: [myshare] ... write list = ...
telcoM's user avatar
  • 114k
6 votes

Permission denied on files in a directory on a CIFS-mounted Windows share in Linux

Further digging revealed a noperm parameter that can be used on the mount command: sudo mount.cifs //HPSERVER/linux-bup/ /home/maxg/bmsOnSrvr --v -o user=linux,pass=****,noperm result now: # [2018-...
MaxG's user avatar
  • 403
6 votes
Accepted

Virtual Box - Shared folder issue with Ubuntu 16.04

Were you able to successfully restart the guest os? That is necessary to be able to see sf_Share through the Auto-mount option. In the Guest OS you can run: sudo mkdir ~/Share sudo mount -t vboxsf ...
Tony's user avatar
  • 224
5 votes
Accepted

Change ownership of a share drive

It is not possible to change permissions on a windows share when it's already mounted, but it is possible to change them during the mount. first unmount your share with: sudo umount /mnt/windowshare/...
D'Arcy Nader's user avatar
  • 2,083
5 votes
Accepted

How to mount a linux host filesystem with FreeDOS running in qemu?

This has worked for me. qemu ... -hdb fat:rw:/dir/to/mount However, it's limited to 512MB, and doesn't reflect any changes made to the directory from the host system after QEMU starts.
nathanael's user avatar
5 votes

Systemd service to start only after CIFS mount

After= is correct – you should add an After= for the .mount unit that represents your filesystem, e.g. After=mnt-data.mount. Although in general you should pair it with either Requires= (in your case) ...
grawity's user avatar
  • 15.2k
4 votes
Accepted

CentOS 7.4 Samba share access denied

You're using an unknown account: check_ntlm_password: Authentication for user [pepe] -> [pepe] FAILED with error NT_STATUS_NO_SUCH_USER, authoritative=1 so your access to soft is as guest. You've ...
Chris Davies's user avatar
4 votes
Accepted

How to view and browse windows shared folders in entire local network?

For a terminal based solution, you can use nmblookup -S '*' which shows all Samba shares in your broadcast domain. More can be found here.
ndookie's user avatar
  • 56
4 votes
Accepted

How to let users collaborate by editing files in a shared directory

It's actually fairly easy. Most people seem to think that they need to set permissions of all files under a given directory, but this is not true. Just the toplevel directory will do: chown :team /...
Wouter Verhelst's user avatar
4 votes

Delete files and folders recursively in subdirectories

A failed answer: rm -R transfer/user*/. e.g.: $ rm -R transfer/user*/. rm: refusing to remove '.' or '..' directory: skipping 'transfer/user1/.' $ Eliminates the contents of all of the users, but ...
TOOGAM's user avatar
  • 208
4 votes
Accepted

SAMBA: Disable anonymous browsing of shares?

In your global section add: restrict anonymous = 2 and change allow guests as it cancels out the anonymous restriction: usershare allow guests = no
Yodanator's user avatar
  • 131
4 votes
Accepted

How to make this Samba share accessible without any user/password login?

I finally found the solution: [global] workgroup = WORKGROUP netbios name = NAS log file = /var/log/samba/log.%m max log size = 1000 logging = file panic action = /usr/share/samba/panic-action %d ...
Basj's user avatar
  • 2,619
3 votes

VirtualBox shared folders from OS X host are not writable on Ubuntu guest

Can you try this ? mount -t vboxsf -ouid=root,gid=www-users,fmode=664,dmode=775 web-server /usr/share/host/web-server
EchoMike444's user avatar
  • 3,225
3 votes

mount error(115): Operation now in progress

I got this error when mounting a remote windows 10 SAMBA drive on ubuntu 18.04. After waiting for 10 minutes and running the same command, it worked normally. Maybe the problem can sometimes be caused ...
Aleksejs Fomins's user avatar
3 votes

How do I create symbolic link in a VMWare shared folder that both host and guest see as a symbolic link?

You should use the tools for the filesystem in use. In this case you need ntfs-3G-Advanced to be able to read NTFS junctions and need to use the Windows junction functions inside Windows (mklink Link ...
Fabby's user avatar
  • 5,549
3 votes

Get a part of a folder name as variable

You can assign the output to a variable, then you can use pattern matching, for example: VAR1=ABCD01 echo ${VAR1##*[[:alpha:]]} This will remove all alphabetical characters from the variable and will ...
Karov's user avatar
  • 113
3 votes
Accepted

uploading, storing and browsing millions of tiny files - best practices

Do not store all files in one directory. Regardless of which filesystem you use browsing will be very very slow. Create subdirectories or possibly two or three levels of subdirectories. It depends on ...
Vladimir Dobias's user avatar
2 votes

How to create a Samba share that is writable from Windows without 777 permissions?

Basic working setup in my case (using SAMBA guest feature, /myfolder access rights suitable for [your_SAMBA-Unix_share_user_account]): [global] guest account = [your_SAMBA-Unix_share_user_account] [...
Artur Chęciński's user avatar
2 votes

How to create a Samba share that is writable from Windows without 777 permissions?

I was looking for this because I was in a hurry and didn't even had time to focus on creating users and so... Just had to take out the data of a debian 9 machine as soon as possible and this was the ...
Alpha2k's user avatar
  • 129
2 votes

password protected samba share

This is explained very well in this video. https://www.youtube.com/watch?v=7Q0mnAT1MRg I found it works better if you backup old smb.conf file and create a new one from scratch. Go to /etc/samba ...
schizoid_man's user avatar
2 votes

Make subdirectory world writable even if parent folder is not

To access a directory, the directory itself, as well as all the intermediate directories from the root down, has to have the x permission for the given user, their group or all. This would allow ...
Kusalananda's user avatar
  • 356k

Only top scored, non community-wiki answers of a minimum length are eligible