CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Perl Programming Guide With Respect to File Username and Grouping (in the linux space)

 



o2b
New User

Apr 8, 2018, 11:00 AM

Post #1 of 4 (4672 views)
Perl Programming Guide With Respect to File Username and Grouping (in the linux space) Can't Post

Hi,

For a bit of context, I am 59 years old and very likely will never program in a working capacity again. I switched from engineering to programming when I was 40 and so little formal training. Did a ton of Perl programming in automation though I afterward came to realize the proficiency level not all that high. Oh, I worked nearly exclusively in the unix/linux space. I did some web programming.

I just got a refurbished desktop and installed Ubuntu linux on it. I want to use it for web programming with Perl (including Mojolicious).

I want to do things right from the get-go and I am wondering about using the linux space with respect to user and grouping of files. I canít remember details, I just remember having some issues with this before. I think it was primarily handling things where the user for the application was something other than root while root owned all standard Perl files, including modules (not my Perl and other programs). I think I also encountered a challenge with the programming editor with respect to what user it was downloaded with and then the ownership of files I tried to edit with it.

I internet searched this subject and so far have come up empty.

I am just hoping for basic rules of thumb with respect to programming and users and grouping. Perhaps there is an online source for this subject? Any suggestions?

Tony


Laurent_R
Veteran / Moderator

Apr 8, 2018, 11:32 PM

Post #2 of 4 (4663 views)
Re: [o2b] Perl Programming Guide With Respect to File Username and Grouping (in the linux space) [In reply to] Can't Post

The usual advice is not to use the system Perl, especially if you're going to install modules and/or frameworks, but to install your own version of Perl (possibly with Perl Brew).


o2b
New User

Apr 9, 2018, 6:29 AM

Post #3 of 4 (4660 views)
Re: [Laurent_R] Perl Programming Guide With Respect to File Username and Grouping (in the linux space) [In reply to] Can't Post

Oh wow! OK, thanks.


o2b
New User

Apr 11, 2018, 2:55 PM

Post #4 of 4 (4623 views)
Re: [Laurent_R] Perl Programming Guide With Respect to File Username and Grouping (in the linux space) [In reply to] Can't Post

Laurent,

The day before your post, I scoped my Macbook Air for the Perl I did. (Perl would have been done 2 years ago and before.) I did a which perl and it returned:

/Users/<my username>/perl5/perlbrew/perls/perl-5.16.0/bin/perl

and this was in the chebang line of a Mojolicious web app. I didn't remember doing this, but anyway, I was working alone with no idea if what I did was a poor jury rig or a decent practise so it was affirming to get your advice.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives