/srv/irclogs.ubuntu.com/2021/04/26/#ubuntu-server.txt

lordievaderGood morning06:30
jamespagerbasak: morning08:59
jamespagerbasak: if you're on SRU duty and have cycles today I have ceph updates including a security fix in the UNAPPROVED queue for focal/groovy/hirsute09:05
jamespagerbasak: I'm also happy to upload a new version for impish to avoid the binary copy forward you raised on the ML if that helps get things moving09:12
rbasakHi!09:40
rbasaktjaalton (not here) is doing SRUs at the moment I think. Maybe try him in #ubuntu-release?09:41
rbasakjamespage: ^09:41
jamespagerbasak: ta09:48
* rbasak will be offline for a bit09:55
jerstenHi all. I'm something of a Linux newb but I'm trying to learn. I have read that Ubuntu can read/write files in an NTFS drive. Does anyone have experience with doing this? And can say for sure that it works out13:57
rbasakIt's worked for me in the past, but my use case was quite limited.13:57
jerstenI ask this because some of the computers on my home network still have to run windows for the time being. I want these windows computers to be able to make use of the ubuntu file server.13:58
rbasakIf going over the network to Ubuntu, it doesn't really matter what filesystem is being used on the Ubuntu end - so I wouldn't use NTFS.13:59
jerstenrbasak: My use case is just storage of video files and other random home network type of stuff13:59
rbasakYou're probably more interested in things like Samba.13:59
jerstenSo I should probably just use ext4? The windows machines won't care about that?13:59
rbasakRight14:00
rbasakWhat will matter is the protocol they're speaking over the network.14:00
rbasakSamba is one option - probably the most common one for what you want to do.14:00
rbasakSamba is the software that you will run on Ubuntu, and will speak to Windows over the network using Windows protocols.14:00
rbasakI expect you'll be able to configure Samba on Ubuntu so that Windows can read and write your media files directly over the Samba-exported network share.14:01
rbasakThough I'm not familiar with the latest on that. It certainly used to be possible without a problem. It got a bit more complicated after some security updates on Windows removed support for some of the older protocols I think.14:02
rbasakI'm not familiar with what happened after that.14:02
jerstenOnce the Ubuntu server is set up, will it be visibile on the network to all other computers? For example, will they be able to see it when you click on the "Network" tab in the OS? That way I can just click and drag files for copying.14:02
rbasakBut basically the Samba project is focused on solving exactly this type of problem so I expect they'll have plenty of documentation on the current state of affairs and how to do it.14:02
lordievaderFor the incidental reading and writing it is fine. Personally I try to keep NTFS on a read-only policy in Linux. And it can be troublesome with the partition not willing to mount because Windows did a hibernate-esque shutdown instead of a clean shutdown and such.14:02
rbasakjersten: yes - if you configure Samba.14:02
lordievaderjersten: In that case you just want to use samba to export your ext4 drives.14:03
rbasakjersten: start here: https://ubuntu.com/server/docs/samba-file-server14:03
jerstenlordievader: Yes I have turned that weird hibernate thing off in windows, I don't like it much. So that won't be a problem for me this time.14:03
jerstenI also have two other Linux computers on the network. Both run Manjaro KDE. So it's still appropriate for me to make use of Ubuntu Server, correct?14:05
jerstenI have Samba installed, and that was my first attempt at making some form of home server. But it doesn't seem to want to keep my settings. I don't know if updates messed them up.. or what. I bought a book on Samba lol14:05
jerstenI find the Samba config file to be kind of strange. Not all of the settings that you can make use of are listed there by default. I thought people who write programs always put all the settings you'd need in the config file. I guess not.14:07
jerstenHere is another question: I have a 1Tb HDD for the Ubuntu Server. I formatted it to ext4, but it won't let me copy anything to it. Says "permission denied" or something like that. Why is that? My account is the administrator on this PC. Shouldn't it just do whatever I want?14:10
rbasakIt's a bit like UAC on Windows.14:12
rbasakYou have the power to do whatever you want, but it's useful for the system to use the permissions system to prevent accidents.14:12
rbasak(and malicious software, etc)14:12
rbasakSo even though you're in the admin group, you're not "root".14:12
rbasakBut you can elevate your privileges to root.14:13
rbasakIt might be better to change the permissions on that filesystem to allow your regular user to write to it though, instead of always running with elevated privileges.14:13
lordievaderjersten: You most likely have a config sample (`/usr/share/doc`) with all settings. I'd normally try to keep my config files clean of any setting that I haven't adjusted. That way you can quickly see what is different from the defaults.14:15
jerstensounds like a good idea. just make a copy of the original config file?14:17
jerstenrbasak: Once you take control of that drive, it's yours forever, right? Unless you formatted it or something. So I created a new ext4 drive. I want to own it so I can read/write to it. I tried many of the chown commands, but none of them seemed to work.14:19
jerstenMaybe someone can post the command to permanently own the drive. And I will tatoo that command on my arm... been dealing with this for awhile now14:20
tewardrbasak: wanting to write across disk, I'd suggest ACLs with special permissions, but that is its own hell too.  RE: your changing permissions issue.14:26
tewardunless it's a separate disk and dedicated for a specific user in which case chown works well on the ext* partitions ;)14:26
teward(I came in late sorry!)14:26
lordievaderWell yes and no. Whoever owns the parent dir has something to say about the children dirs. Everything starts with the root (`/`) which is owned by root.14:26
iceyjamespage: any particular reason you committed the change for https://bugs.launchpad.net/nova/+bug/1892361 to the stein branch, but didn't release and upload?14:27
ubot3Launchpad bug 1892361 in OpenStack Compute (nova) rocky "SRIOV instance gets type-PF interface, libvirt kvm fails" [Medium, In Progress]14:27
lordievaderRunning `chown` applies only to the file/dir you supply as the argument. Unless you run it with the recursive (-r) flag. Which could be dangerous in combination with symlinks, make it a habit to whenever you run chown/chmod in recursive mode to add the -h flag so it won't follow symlinks.14:28
lordievaderThe danger is that if there is a symlink back to `/` in your directory chown/chmod will try to apply the change there too (if it can).14:29
jamespageicey: not that I can remeber14:29
iceyjamespage: if you don't mind, then, I'll work on it?14:30
jerstenSo how would that command look? As a newb my mind thinks: sudo chown Server1Tb -r -h14:30
lordievader(Rather funny experiment, inside a virtual machine remove the execute flag for all files on the drive, then try to run something)14:30
jamespageicey: yp14:30
jerstenI named the driver "Server1Tb"14:30
jerstenDrive** not driver14:31
lordievaderjersten: Take a look at the manual page for `chown` (`man chown`), it will tell you that the user comes before the path, so something like (hrmm, I lied about the recursive flag, its -R): `sudo chown -Rh <user>:<group> <directory>`.14:34
jerstenThat's something else that is new to me... the group. How do I find out what group I'm in? I mean I installed Manjaro, I don't remember setting up any kind of group. But apparently it exists14:37
lordievader`groups` will show all the groups your current user is in.14:40
jerstenOk I will take a look at that now14:48
jerstenlordievader: It output: "sys network power sambashare lp wheel autologin justin"14:52
tewardjersten: `id` will also show your primary group14:53
tewardmy guess is your primary group is your username - the group created for your user.14:54
teward(default user that gets installed also gets a group with the same name created in a default install)14:54
jerstenthat time it output: "uid=1000(justin) gid=1001(justin) groups=1001(justin),3(sys),90(network),98(power),965(sambashare),991(lp),998(wheel),1000(autologin)14:57
jersten"14:57
jerstenSo my primary group is named the exact same thing as my username? Isn't that a little... I dunno. Wrong. Seems like you should have to name it something else.14:57
jerstenSo the command to own the drive would be: "sudo chown -Rh justin:justin Server1Tb"14:59
jerstenWAAUGHH!! ... "chown: cannot access 'Server1Tb': No such file or directory"15:00
jerstenExcept yeah there is. I'm looking at it right now. It's plugged into a USB 3.0 port via an external HDD enclosure.15:01
=== Napsterbater_ is now known as Napsterbater
jerstenI guess chown doesn't know what I'm actually looking for.15:17
jerstenThe command is probably right, except I need to cd or something. Sorry about my newbishness, I've only been a linux user for a very short time.15:18
tewardno worries, we all started there at one point or another :)15:18
jerstenBut I got that command! I have the power!15:21
jerstenThanks to all of you for the help, I'll figure it out later. Goodbye!15:22
UssatSo, I have a Dr here who wants his Ubuntu 17.10 updated to the latest 18.04 release, this is what I get: https://paste.centos.org/view/35ceee91 How would I get latest snapd for 17, also the 404's15:52
Ussatroot@upgrade-test:~# snap refresh15:53
UssatAll snaps up to date.15:53
Ussatso....at a loss here15:53
sdezielUssat: Try with http://old-releases.ubuntu.com/ubuntu maybe?16:01
Ussatyup...just found that, thanks16:02
Ussatewwww16:06
UssatProcessing was halted because there were too many errors.16:06
Ussattons of these:16:07
Ussatdpkg: error processing package plymouth-theme-ubuntu-text (--configure):16:07
Ussat dependency problems - leaving triggers unprocessed16:07
UssatWell, think its a wash16:18
Ussatok, LOOKS savable..16:23
UssatOK, looks doable, with a few other steps, cool16:32
=== CodeMouse92__ is now known as Codemouse92
=== Codemouse92 is now known as CodeMouse92
=== smoser1 is now known as smoser
hallynhey rbasak -  did the rest of the blog series of https://ubuntu.com/blog/developing-ubuntu-using-git  ever get posted?  (the index entries at the top are not links :)23:21

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!