Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

2 votes
3 answers
629 views
How to securely export a device (HDD)?
So I have a Scientific Linux 6.3 (RHEL clone so basically the question is Redhat related) machine called "B" (with an extra "A" HDD besides the system HDD) and a notebook with SL 6.3. They are in a /24 IPv4 subnet, and can fully reach each other. **Q**: How can I export the "A" HDD device to the not...
So I have a Scientific Linux 6.3 (RHEL clone so basically the question is Redhat related) machine called "B" (with an extra "A" HDD besides the system HDD) and a notebook with SL 6.3. They are in a /24 IPv4 subnet, and can fully reach each other. **Q**: How can I export the "A" HDD device to the notebook, so that on the notebook I could see the "A" HDD as a device /HDD/? (, and locally encrypt it using LUKS - I know this last encrypting part) The important thing is that I need the connection to be secured (SSL?) so that no one can intercept the data that I encrypt on the notebook. **OR**: is it already encrypted via LUKS? (and an SSL connection between the notebook and the "B" machine would be just an overhead?) - extra: I also need that the "exporting of the device" must be routable over network. **ps.: so the main question is: does encrypted communication needed between the notebook and the "B" machine or are ALL the datas on the HDD already encrypted when leaving the notebook (even LUKS pwd too??)**
gasko peter (5634 rep)
Sep 17, 2012, 09:00 AM • Last activity: Jul 13, 2025, 04:56 PM
0 votes
3 answers
5571 views
Samba share on Debian: Can see files from windows but can't write to them
I'm trying to set up a samba share to a computer that only I will have access to. I need full access to this computer from my windows machine. I am the only person using either machine, and I need full read/write access to the share. I tried this so far, and I can SEE the folders/files from my windo...
I'm trying to set up a samba share to a computer that only I will have access to. I need full access to this computer from my windows machine. I am the only person using either machine, and I need full read/write access to the share. I tried this so far, and I can SEE the folders/files from my windows machine, but I can't edit any of the files. My code will be on the linux machine, and I will use my windows laptop to code on it. 1. My windows username is just my email, let's call it my_email@gmail.com 2. There is no workgroup (it's just WORKGROUP). 3. My linux installation user is "expert" (ironic, I know) 4. I'm using Debian 9 (stretch). Just installed today from: debian-9.4.0-amd64-netinst.iso. Used KDE. Here is my smb.conf (comments removed, print sections removed) [global] ; wins server = w.x.y.z ; interfaces = 127.0.0.0/8 eth0 ; bind interfaces only = yes log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %d server role = standalone server passdb backend = tdbsam obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes map to guest = bad user ########## Domains ########### ; logon path = \\%N\profiles\%U ; logon drive = H: ; logon script = logon.cmd ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u ; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u ; add group script = /usr/sbin/addgroup --force-badname %g ############ Misc ############ ; include = /home/samba/etc/smb.conf.%m ; idmap uid = 10000-20000 ; idmap gid = 10000-20000 ; template shell = /bin/bash ; usershare max shares = 100 usershare allow guests = yes #======================= Share Definitions ======================= [homes] comment = Home Directories browseable = no read only = yes create mask = 0700 directory mask = 0700 valid users = %S [Share] comment = Full Access Share path = /home/expert/Projects/expert browseable = yes writable = yes public = yes guest ok = yes read only = no create mask = 0777 directory mask = 0777 write list = 0777 valid users = nobody, admin, expert, anonymous, my_email@gmail.com When I do ls -ld . on the folder where I want to have full access, I get: drwxrwxrwx 3 expert expert 4096 . I thought by giving it create, directory masks and write lists as 0777 I would give full control to Samba. The last line (valid users) was just a shot in the dark from me (didn't work)
Mormoran (121 rep)
May 1, 2018, 03:06 PM • Last activity: May 16, 2025, 07:06 AM
1 votes
1 answers
2832 views
Cannot access Windows shares via samba
I'm trying to follow this guide to access Samba shares: [Ubuntu 12.04 LTS Precise Pangolin: File sharing with Samba.][1] but I'm sure there are many of them. I've had problems with Samba before. In fact in my xx years of life on Linux I have never successfully setup Samba. The steps would be: 1. Upd...
I'm trying to follow this guide to access Samba shares: Ubuntu 12.04 LTS Precise Pangolin: File sharing with Samba. but I'm sure there are many of them. I've had problems with Samba before. In fact in my xx years of life on Linux I have never successfully setup Samba. The steps would be: 1. Update your system 2. Install samba $ sudo apt-get install samba samba-common winbind 3. Configure windbind $ sudo gedit /etc/nsswitch.conf and "wins" to the hosts line. 4. Reboot 5. "Having done this you should now be able to select ‘GO > Network’ from the desktop menu and view your entire Windows and Linux based network." But in my case I just see "Windows network" which is an empty folder and that's all. No shares from windows neither Linux PC's. Can anyone tell me what I'm missing or doing wrong?
user568021 (105 rep)
May 3, 2014, 12:36 PM • Last activity: Apr 9, 2025, 02:04 PM
12 votes
4 answers
6041 views
Create Temporary Samba Share
Is there a possibility to temporarily share a directory per *Samba*? With *Python 3* i can serve the current directory per *HTTP* using: `python -m http.server`. I'd like to do the same thing with *Samba*.
Is there a possibility to temporarily share a directory per *Samba*? With *Python 3* i can serve the current directory per *HTTP* using: python -m http.server. I'd like to do the same thing with *Samba*.
schmijos (447 rep)
Nov 12, 2012, 08:41 AM • Last activity: Feb 10, 2025, 08:24 AM
0 votes
0 answers
6 views
USB memory devices to be shared on MacOS 10.7.10
I have a Mac (BSD UNIX: I believe that USB devices are mounted at /Volumes. Is there a clever method to ensure that all USB memory devices are shared at a consistent location on the network automatically when they are plugged in? [![enter image description here][1]][1] Mac has SAMBA UI: [1]: https:/...
I have a Mac (BSD UNIX: I believe that USB devices are mounted at /Volumes. Is there a clever method to ensure that all USB memory devices are shared at a consistent location on the network automatically when they are plugged in? enter image description here Mac has SAMBA UI:
gatorback (1522 rep)
Nov 29, 2024, 07:49 PM
0 votes
1 answers
96 views
How could I share files from my Raspberry Pi to my Laptop?
I have a Raspberry Pi 1 Model B which uses 32 bit Bookworm and have connected it to my network router (a BT hub) via ethernet cable. I want to be able to read and write to all files on the Raspberry Pi from my Windows 11 laptop using the path `\\192.168.1.123\example`. Currently, my PC can read a co...
I have a Raspberry Pi 1 Model B which uses 32 bit Bookworm and have connected it to my network router (a BT hub) via ethernet cable. I want to be able to read and write to all files on the Raspberry Pi from my Windows 11 laptop using the path \\192.168.1.123\example. Currently, my PC can read a couple of files that I set up using Samba from that file directory but I can't see any of the original files not created using Samba or any of the USB Drives connected. How could I make my laptop able to write and read to all the files and drives attached to the Raspberry Pi? I also want any drives I attached to automatically be accessible by laptop so I don't have to change anything on my Raspberry Pi every time I attach a new drive.
Jacob Boughton (111 rep)
Nov 18, 2024, 09:41 AM • Last activity: Nov 19, 2024, 03:53 AM
0 votes
2 answers
329 views
Ubuntu Server disk cloning + saving on another disk in network
This my first question here and bear with me if some info is missing. So, i have this technical problem: I have a Ubuntu Server installed on a Raspberry Pi 4 Model B ( so on ARM ) and i need to do a full backup and upload it on another PC in the same local network ( A Windows PC ). This is the serve...
This my first question here and bear with me if some info is missing. So, i have this technical problem: I have a Ubuntu Server installed on a Raspberry Pi 4 Model B ( so on ARM ) and i need to do a full backup and upload it on another PC in the same local network ( A Windows PC ). This is the server FS:
| Filesystem    | Size | Used | Avail | Use% | Mounted on      |
|---------------|------|------|-------|------|-----------------|
| tmpfs         | 375M | 6.4M | 368M  | 2%   | /run            |
| /dev/sda2     | 110G | 38G  | 69G   | 36%  | /               |
| tmpfs         | 1.9G | 0    | 1.9G  | 0%   | /dev/shm        |
| tmpfs         | 5.0M | 12K  | 5.0M  | 1%   | /run/lock       |
| /dev/sda1     | 253M | 138M | 115M  | 55%  | /boot/firmware  |
| tmpfs         | 375M | 4.0K | 375M  | 1%   | /run/user/1000  |
| total         | 113G | 38G  | 71G   | 35%  | -               |



I thought of maybe set up a fileshare ( like SAMBA ) on my windows machine and putting the backup there. I never did Linux backups and i don't know how to make one, so some questions: - What is the best way of creating a backup? - I need to backup sda1 and sda2 ? - Best way to port it on another machine with different OS ? - Once i have the backup in hand, with a pristine new SSD, how i import it onto it? Feel free to ask me if you need further info, thanks in advance!
Adrian (1 rep)
Jul 3, 2024, 05:38 PM • Last activity: Jul 3, 2024, 07:51 PM
1 votes
2 answers
6617 views
Show specific samba shares only to some users
I'd like to set up my samba so that each user has access to specific folders. Some of them for example have home folder on server and those should have access to their home folder, other don't and they shouldn't. I have set [share1] ... valid users = user1, user2 #those users have access to this sha...
I'd like to set up my samba so that each user has access to specific folders. Some of them for example have home folder on server and those should have access to their home folder, other don't and they shouldn't. I have set [share1] ... valid users = user1, user2 #those users have access to this share ... The result is that only some users have access to those folders, that is good. But when I log as user3 he sees this share1, but cannot access it. How can I make it visible only to some users, so that users that cannot access share don't see it at all? I have found some suggestions to use browseable list = user1 user2 but it doesn't work for me, testparm says that browseable list is incorrect.
fulaphex (213 rep)
Nov 27, 2015, 02:13 AM • Last activity: May 27, 2024, 04:02 PM
19 votes
3 answers
34476 views
Forcing Linux NFS client to reconnect to server after NFS is disconnected
Is there a way to force a Linux client to reconnect to a NFS server after it has lost its connection? The client eventually notices the server is back and resumes working just fine. I'm just wondering if there is a way to speed up this re-connection.
Is there a way to force a Linux client to reconnect to a NFS server after it has lost its connection? The client eventually notices the server is back and resumes working just fine. I'm just wondering if there is a way to speed up this re-connection.
MJD (299 rep)
Jan 31, 2013, 10:10 PM • Last activity: Apr 2, 2024, 02:16 PM
36 votes
3 answers
131389 views
Shared folder between QEMU Windows guest and Linux host
In the past I have used Virtual Box which has very good support for sharing a folder on the host with a Windows guest. I am looking for similar functionality for QEMU. The documentation suggests to expose a Samba server running somewhere in the network, or use the `-net user,smb=/path/to/folder` to...
In the past I have used Virtual Box which has very good support for sharing a folder on the host with a Windows guest. I am looking for similar functionality for QEMU. The documentation suggests to expose a Samba server running somewhere in the network, or use the -net user,smb=/path/to/folder to start a samba server. I had no luck with the -net user,smb option of QEMU. All it does is starting smbd (which conflicts with another service running locally due to a port conflict). Suffice to say, this is unusable, especially with multiple guests in mind. (For Linux, -virtfs (Plan 9) can be used for easy folder sharing.) Other problems with Samba is that it is not limited to folder sharing, it also does printer sharing, user mapping and whatsnot. All I need is to share one (or more?) folders with the Windows guest. Does there exist an alternative folder sharing method for QEMU that works with a Windows guest? Or is there a way to configure Samba to restrict itself to a very limited set of features and integrate it into QEMU? It should: - Not everyone in the network should be able to access the folder. - local users included (if feasible). - Not provide other functionality (printer sharing). - Use case: expose a git directory to Windows, compile it in Windows and use Linux for analysis. - Have an acceptable speed, Windows uses virtio-scsi and virtio-net. - Be able to share a folder from a Linux host with a Windows 7 guest.
Lekensteyn (21600 rep)
Nov 2, 2014, 03:22 PM • Last activity: Jan 9, 2024, 06:38 PM
2 votes
1 answers
341 views
netatalk 'vol size limit' causes Time Machine to report 0 KB available
When I set the `vol size limit` in `/etc/netatalk/afp.conf`, Time Machine initially reports the correct amount of available, but fails on backup and reports that 0 KB are available. I am wondering if this might be because I have a share pointing to `/data` and another (Time Machine) share pointing t...
When I set the vol size limit in /etc/netatalk/afp.conf, Time Machine initially reports the correct amount of available, but fails on backup and reports that 0 KB are available. I am wondering if this might be because I have a share pointing to /data and another (Time Machine) share pointing to /data/mbp_time_machine. The [netatalk docs](https://netatalk.sourceforge.io/3.0/htmldocs/afp.conf.5.html) specify that "you MUST NOT use this volume to store other content when using this option", but I do not know if they are referring to the AFP volume or the actual logical volume on the host. Below is my afp.conf:
;
; Netatalk 3.x configuration file
;

[Global]
; Global server settings
hostname=redacted_afp
[Homes]
basedir regex = /home

[redacted_afp]
path = /data

[carson Time Machine]
path = /data/mbp_time_machine
time machine = yes
vol size limit=1000
dannycbus (121 rep)
Apr 23, 2022, 05:17 PM • Last activity: Dec 19, 2023, 08:43 PM
10 votes
3 answers
27099 views
How to move completed torrent downloads to another folder without breaking the torrent link?
I'm using Transmission on EOs and I've downloaded a bunch of torrent files which ended up my Download folder in my /home. I'd like now to move the files to my external hard drive without breaking the link and contribute to further sharing upload of these files. What should I do?
I'm using Transmission on EOs and I've downloaded a bunch of torrent files which ended up my Download folder in my /home. I'd like now to move the files to my external hard drive without breaking the link and contribute to further sharing upload of these files. What should I do?
neydroydrec (3887 rep)
Dec 23, 2014, 02:12 PM • Last activity: Dec 6, 2023, 10:38 AM
0 votes
1 answers
57 views
parent of root - remembering Apollo/Domain OS
Decades ago I worked in a lab equipped with Apollo/Domain workstations. One of the niceties of these machines was that their filesystems where organised and accessible as directories in what appeared to be the parent of an individual machine's root directory. You accessed that "super root" with `//`...
Decades ago I worked in a lab equipped with Apollo/Domain workstations. One of the niceties of these machines was that their filesystems where organised and accessible as directories in what appeared to be the parent of an individual machine's root directory. You accessed that "super root" with //; your home directory would be //$HOST/$HOME. It would be really nice to have such an automatic networked filesystem at home. Is there any software that does something similar (for Linux & Mac)? EDIT: as an example of something I don't see how you'd do it with the protocols mentioned below, here's something a bit sneaky I used to do: - Set up a directory of mine in a writable portion of fast harddisk space on the fastest machine on the LAN, IIRC something like mkdir -p //fysae/tmp/.bertin/home, copy login scripts and work stuff there, and then setenv HOME "//fysae/tmp/.bertin/home" (this is also where I picked up my addition to [t]csh). All that was done with shell commands which is also where I did all my work. BTW, another nice feature made all this more transparent; it was possible to reference an env. variable in symlinks so their target depended on that variable.
RJVB (254 rep)
Nov 2, 2023, 01:33 AM • Last activity: Nov 2, 2023, 12:04 PM
0 votes
1 answers
366 views
How to access files shared from Windows on FreeBSD?
I have a desktop with windows 10 on it, and I have another desktop with FreeBSD on it. No virtualization. I have shared some folders on Win desktop, which I can access on LAN with other Win10 laptops. But I am unable to access these folders from freebsd desktop, how can I do it? I went through older...
I have a desktop with windows 10 on it, and I have another desktop with FreeBSD on it. No virtualization. I have shared some folders on Win desktop, which I can access on LAN with other Win10 laptops. But I am unable to access these folders from freebsd desktop, how can I do it? I went through older threads, but none of the solutions worked. All of them are outdated. The samba port of freebsd has been deleted https://www.freshports.org/net/samba
rohit4444 (1 rep)
Aug 10, 2023, 04:57 PM • Last activity: Aug 10, 2023, 05:12 PM
2 votes
2 answers
14164 views
Set SMB2 protocol in Samba 3.6.6
I've decided to switch to the higher version of SMB in Samba (at least 2) - mostly because of the security reasons. I've tried to add to the smb.conf in the [global] section: client min protocol = SMB2 client max protocol = SMB3 server min protocol = SMB2 or just protocol=SMB2 I have restarted samba...
I've decided to switch to the higher version of SMB in Samba (at least 2) - mostly because of the security reasons. I've tried to add to the smb.conf in the [global] section: client min protocol = SMB2 client max protocol = SMB3 server min protocol = SMB2 or just protocol=SMB2 I have restarted samba or the whole server after each try. But logs say: [1970/01/01 01:01:12.085949, 0] smbd/negprot.c:706(reply_negprot) No protocol supported ! [1970/01/01 01:01:13.153024, 0] smbd/negprot.c:706(reply_negprot) No protocol supported ! [2018/11/04 12:10:25.080148, 0] param/loadparm.c:7997(lp_do_parameter) Ignoring unknown parameter "server min protocol" [2018/11/04 12:10:25.092055, 0] param/loadparm.c:7997(lp_do_parameter) Ignoring unknown parameter "client min protocol" [2018/11/04 12:10:30.803144, 0] param/loadparm.c:7997(lp_do_parameter) Ignoring unknown parameter "server min protocol" [2018/11/04 12:10:30.804260, 0] param/loadparm.c:7997(lp_do_parameter) Ignoring unknown parameter "client min protocol" I've googled a little and noticed that some people configure cufs also in the FSTAB. I think I had not done this and it was working just becasue of smb.conf.
Here is my FSTAB: roc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 2 /dev/mmcblk0p2 / ext4 defaults,noatime 0 1 UUID=34150b89-5e8b-4769-8b68-f403659c58f7 /media/USBHD auto defaults,_netdev 0 2 And here is the smb.conf part defining the shared folder: [USBHD] comment=Dysk udostepniony path = /media/USBHD valid users = @users force group = users create mask = 0777 directory mask = 0777 read only = no writeable = yes browseable = yes public = yes Should I edit FSTAB? How?
When is it possible to configure version protocol like in the MAN page in the smb.conf, when it's necessary to do this in FSTAB?
**I guess that *min protocol* may not be available in the Samba version I use. But anyway, it supports SMB2 protocol, so how can I switch it on?** Samba version 3.6.6
NAME="Raspbian GNU/Linux" VERSION_ID="7" VERSION="7 (wheezy)" Kernel: 4.1.19+ testparm -v Load smb config files from /etc/samba/smb.conf rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) Unknown parameter encountered: "client min protocol" Ignoring unknown parameter "client min protocol" Unknown parameter encountered: "client max protocol" Ignoring unknown parameter "client max protocol" Processing section "[homes]" Processing section "[printers]" Processing section "[print$]" Processing section "[USBHD]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions [global] display charset = LOCALE workgroup = WORKGROUP realm = netbios name = RASPBERRYPI netbios aliases = netbios scope = server string = %h server interfaces = bind interfaces only = No security = USER auth methods = encrypt passwords = Yes client schannel = Auto server schannel = Auto allow trusted domains = Yes map to guest = Bad User null passwords = No obey pam restrictions = Yes password server = * smb passwd file = /etc/samba/smbpasswd private dir = /etc/samba passdb backend = tdbsam algorithmic rid base = 1000 root directory = guest account = nobody enable privileges = Yes pam password change = Yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword: * %n\n *password\supdated\ssuccessfully* . passwd chat debug = No passwd chat timeout = 2 check password script = username map = password level = 0 username level = 0 unix password sync = Yes restrict anonymous = 0 lanman auth = No ntlm auth = Yes raw NTLMv2 auth = No client NTLMv2 auth = Yes client lanman auth = No client plaintext auth = No client use spnego principal = No send spnego principal = No preload modules = dedicated keytab file = kerberos method = default map untrusted to domain = No log level = 2 syslog = 0 syslog only = No log file = /var/log/samba/log.%m max log size = 1000 debug timestamp = Yes debug prefix timestamp = No debug hires timestamp = Yes debug pid = No debug uid = No debug class = No enable core files = Yes smb ports = 445 139 large readwrite = Yes max protocol = SMB2 min protocol = CORE min receivefile size = 0 read raw = Yes write raw = Yes disable netbios = No reset on zero vc = No log writeable files on exit = No acl compatibility = auto defer sharing violations = Yes nt pipe support = Yes nt status support = Yes announce version = 4.9 announce as = NT max mux = 50 max xmit = 16644 name resolve order = lmhosts wins host bcast max ttl = 259200 max wins ttl = 518400 min wins ttl = 21600 time server = No unix extensions = Yes allow dcerpc auth level connect = No use spnego = Yes client signing = auto server signing = No client use spnego = Yes client ldap sasl wrapping = sign enable asu support = No svcctl list = deadtime = 0 getwd cache = Yes keepalive = 300 lpq cache time = 30 max smbd processes = 0 paranoid server security = Yes max disk size = 0 max open files = 16384 socket options = TCP_NODELAY use mmap = Yes hostname lookups = No name cache timeout = 660 ctdbd socket = cluster addresses = clustering = No ctdb timeout = 0 ctdb locktime warn threshold = 0 smb2 max read = 65536 smb2 max write = 65536 smb2 max trans = 65536 smb2 max credits = 8192 load printers = Yes printcap cache time = 750 printcap name = cups server = cups encrypt = No cups connection timeout = 30 iprint server = disable spoolss = No addport command = enumports command = addprinter command = deleteprinter command = show add printer wizard = Yes os2 driver map = mangling method = hash2 mangle prefix = 1 max stat cache size = 256 stat cache = Yes machine password timeout = 604800 add user script = rename user script = delete user script = add group script = delete group script = add user to group script = delete user from group script = set primary group script = add machine script = shutdown script = abort shutdown script = username map script = username map cache time = 0 logon script = logon path = \\%N\%U\profile logon drive = logon home = \\%N\%U domain logons = No init logon delayed hosts = init logon delay = 100 os level = 20 lm announce = Auto lm interval = 60 preferred master = No local master = Yes domain master = Auto browse list = Yes enhanced browsing = Yes dns proxy = No wins proxy = No wins server = wins support = No wins hook = kernel oplocks = Yes lock spin time = 200 oplock break wait time = 0 ldap admin dn = ldap delete dn = No ldap group suffix = ldap idmap suffix = ldap machine suffix = ldap passwd sync = no ldap replication sleep = 1000 ldap suffix = ldap ssl = start tls ldap ssl ads = No ldap deref = auto ldap follow referral = Auto ldap timeout = 15 ldap connection timeout = 2 ldap page size = 1024 ldap user suffix = ldap debug level = 0 ldap debug threshold = 10 eventlog list = add share command = change share command = delete share command = preload = lock directory = /var/run/samba state directory = /var/lib/samba cache directory = /var/cache/samba pid directory = /var/run/samba utmp directory = wtmp directory = utmp = No default service = message command = get quota command = set quota command = remote announce = remote browse sync = socket address = 0.0.0.0 nmbd bind explicit broadcast = Yes homedir map = auto.home afs username map = afs token lifetime = 604800 log nt token command = time offset = 0 NIS homedir = No registry shares = No usershare allow guests = Yes usershare max shares = 100 usershare owner only = Yes usershare path = /var/lib/samba/usershares usershare prefix allow list = usershare prefix deny list = usershare template share = allow insecure wide links = No async smb echo handler = No multicast dns register = Yes panic action = /usr/share/samba/panic-action %d perfcount module = host msdfs = Yes passdb expand explicit = No idmap backend = tdb idmap cache time = 604800 idmap negative cache time = 120 idmap uid = idmap gid = template homedir = /home/%D/%U template shell = /bin/false winbind separator = \ winbind cache time = 300 winbind reconnect delay = 30 winbind max clients = 200 winbind enum users = No winbind enum groups = No winbind use default domain = No winbind trusted domains only = No winbind nested groups = Yes winbind expand groups = 1 winbind nss info = template winbind refresh tickets = No winbind offline logon = No winbind normalize names = No winbind rpc only = No create krb5 conf = Yes ncalrpc dir = /var/ncalrpc winbind max domain connections = 1 idmap config * : backend = tdb comment = path = username = invalid users = valid users = admin users = read list = write list = printer admin = force user = force group = read only = Yes acl check permissions = Yes acl group control = No acl map full control = Yes create mask = 0744 force create mode = 00 security mask = 0777 force security mode = 00 directory mask = 0755 force directory mode = 00 directory security mask = 0777 force directory security mode = 00 force unknown acl user = No inherit permissions = No inherit acls = No inherit owner = No guest only = No administrative share = No guest ok = No only user = No hosts allow = hosts deny = allocation roundup size = 1048576 aio read size = 0 aio write size = 0 aio write behind = ea support = No nt acl support = Yes profile acls = No map acl inherit = No afs share = No smb encrypt = auto block size = 1024 change notify = Yes directory name cache size = 100 kernel change notify = Yes max connections = 0 min print space = 0 strict allocate = No strict sync = No sync always = No use sendfile = No write cache size = 0 max reported print jobs = 0 max print jobs = 1000 printable = No print notify backchannel = Yes print ok = No printing = cups cups options = print command = lpq command = %p lprm command = lppause command = lpresume command = queuepause command = queueresume command = printer name = use client driver = No default devmode = Yes force printername = No printjob username = %U default case = lower case sensitive = Auto preserve case = Yes short preserve case = Yes mangling char = ~ hide dot files = Yes hide special files = No hide unreadable = No hide unwriteable files = No delete veto files = No veto files = hide files = veto oplock files = map archive = Yes map hidden = No map system = No map readonly = yes mangled names = Yes store dos attributes = No dmapi support = No browseable = Yes access based share enum = No blocking locks = Yes csc policy = manual fake oplocks = No locking = Yes oplocks = Yes level2 oplocks = Yes oplock contention limit = 2 posix locking = Yes strict locking = Auto share modes = Yes dfree cache time = 0 dfree command = copy = preexec = preexec close = No postexec = root preexec = root preexec close = No root postexec = available = Yes volume = fstype = NTFS set directory = No wide links = No follow symlinks = Yes dont descend = magic script = magic output = delete readonly = No dos filemode = No dos filetimes = Yes dos filetime resolution = No fake directory create times = No vfs objects = msdfs root = No msdfs proxy = [homes] comment = Home Directories valid users = %S create mask = 0700 directory mask = 0700 browseable = No [printers] comment = All Printers path = /var/spool/samba create mask = 0700 printable = Yes print ok = Yes browseable = No [print$] comment = Printer Drivers path = /var/lib/samba/printers [USBHD] comment = Dysk udostepniony path = /media/USBHD valid users = @users force group = users read only = No create mask = 0777 directory mask = 0777 guest ok = Yes
Filip (21 rep)
Nov 7, 2018, 12:54 PM • Last activity: Jul 18, 2023, 07:02 PM
1 votes
2 answers
525 views
Allow users to moves files into a "readonly" directory
I am on Ubuntu 20.04 and I have users who work on Jupyter notebooks in their own home directories, and then they can move the notebook onto a shared directory on the Jupyter server where everyone can read them, but not edit or delete them. Only the owner should be able to delete and edit. I tried to...
I am on Ubuntu 20.04 and I have users who work on Jupyter notebooks in their own home directories, and then they can move the notebook onto a shared directory on the Jupyter server where everyone can read them, but not edit or delete them. Only the owner should be able to delete and edit. I tried to work with the setgid and sticky bits, and the last issue I have is that if the file has 664 permissions, I don't see a way to change it to 644 so only the owner can change it.
TheProphet (11 rep)
May 3, 2023, 12:11 PM • Last activity: May 3, 2023, 07:16 PM
0 votes
1 answers
428 views
How to use the command line to get a list of peers from a BitTorrent tracker
Given that I have the infohash of a torrent and the URL of a BitTorrent tracker (e.g. `udp://tracker.example.com/announce`), how do I use the command line to get all the IP addresses of peers that the tracker knows about? I am using Ubuntu 20.04.
Given that I have the infohash of a torrent and the URL of a BitTorrent tracker (e.g. udp://tracker.example.com/announce), how do I use the command line to get all the IP addresses of peers that the tracker knows about? I am using Ubuntu 20.04.
Flux (3238 rep)
Jan 31, 2023, 10:38 AM • Last activity: Jan 31, 2023, 12:36 PM
59 votes
10 answers
260603 views
Use virt-manager to share files between Linux host and Windows guest?
Is it possible to use "Filesystem Passthrough" virtual hardware option inside virt-manager to share a folder on my Linux host with my Windows guest? I found some tutorials for how to do this with a Linux guest, but when I try this with my Windows guest I receive the following error message when atte...
Is it possible to use "Filesystem Passthrough" virtual hardware option inside virt-manager to share a folder on my Linux host with my Windows guest? I found some tutorials for how to do this with a Linux guest, but when I try this with my Windows guest I receive the following error message when attempting to start the VM: Error starting domain: Unable to read from monitor: Connection reset by peer Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 100, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/asyncjob.py", line 122, in tmpcb callback(*args, **kwargs) File "/usr/share/virt-manager/virtManager/domain.py", line 1210, in startup self._backend.create() File "/usr/lib64/python2.7/site-packages/libvirt.py", line 698, in create if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) libvirtError: Unable to read from monitor: Connection reset by peer I tried sourcing some documentation but all I could find was the official page linking to a FAQ and "some screenshots" .
Blaker (691 rep)
Aug 9, 2013, 05:28 AM • Last activity: Jan 30, 2023, 11:14 AM
0 votes
1 answers
200 views
How can I share files on the server with others users in internet?
I have a linux server that I manage via SFTP and SSH. Some files are generated on the server through scripts. How can I make it so that I can give users on the Internet links to specific files (so that a specific user can only access one converse file) that are on this server? What technology stack...
I have a linux server that I manage via SFTP and SSH. Some files are generated on the server through scripts. How can I make it so that I can give users on the Internet links to specific files (so that a specific user can only access one converse file) that are on this server? What technology stack do I need to learn? I would like to automate this process so that I run the script, it generates a file for the user and I would immediately see a link that I would give to the user. Is this even possible to do? If it is important, then the server has a domain name, and also runs on CentOS 7.
Voltara (3 rep)
Jan 23, 2023, 10:16 AM • Last activity: Jan 23, 2023, 12:52 PM
1 votes
1 answers
7679 views
Are there other Linux-to-Linux network mount method besides NFS?
In Linux, specifically RHEL/CentOS 7.9, but anything equivalent or of a later version... if I wanted to mount a folder/directory from another Linux system across a network, all I am aware of is NFS, either NFSv3 or NFSv4. Is there any other mount method, that is functionally comparable to&...
In Linux, specifically RHEL/CentOS 7.9, but anything equivalent or of a later version... if I wanted to mount a folder/directory from another Linux system across a network, all I am aware of is NFS, either NFSv3 or NFSv4. Is there any other mount method, that is functionally comparable to NFS, for mounting some exported (shared) folder/directory from another Linux system on the network?
ron (8647 rep)
Oct 26, 2022, 08:54 PM • Last activity: Nov 23, 2022, 01:49 PM
Showing page 1 of 20 total questions