LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-01-2009, 02:38 PM   #1
tritonsmoon
LQ Newbie
 
Registered: May 2009
Distribution: SuSE 10.2
Posts: 11

Rep: Reputation: 0
SLES /etc/profile.local


SuSE Enterprise Linux 10 SP 2

I was trying to respect the warning at /etc/profile
and created a /etc/profile.local file.

I used cat /etc/profile >> /etc/profile.local

I then changed the UMASK value from 022 to 0027 and found (GOOGLE) that I could type source = /etc/profile.local without rebooting.

I did a logout. Then logged back in and received the following errors:
Argument List too long
Argument List too long
Argument List too long
Argument List too long
Argument List too long
Argument List too long

(I cannot login)

I was able to reboot the system. Again when I logged in I received the same messages:
Argument List too long
Argument List too long
Argument List too long
Argument List too long

(Again unable to login)

I needed to recover the system using the install DVD. I removed the /etc/profile.local file and rebooted again.
This time I am able to login.

Does anyone have any pointers on creating a profile.local file? Should this be a blank file to start with? I am only interested in changing the UMASK value for now, but my recent "adventure" has made me apprehensive about changing anything else.

Last edited by tritonsmoon; 06-01-2009 at 03:10 PM.
 
Old 06-01-2009, 05:31 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
The culprit was the equal sign. To source a file you just
. /path/to/file
or
source /path/to/file


Cheers,
Tink
 
Old 06-02-2009, 09:54 AM   #3
tritonsmoon
LQ Newbie
 
Registered: May 2009
Distribution: SuSE 10.2
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
The culprit was the equal sign. To source a file you just
. /path/to/file
or
source /path/to/file
I apologize, I'm not sure why I typed the equal sign. That was not in my syntax. That must have been a mental lapse on my part.
I did indeed type "source /etc/profile.local" on my system.
 
Old 06-02-2009, 01:48 PM   #4
tritonsmoon
LQ Newbie
 
Registered: May 2009
Distribution: SuSE 10.2
Posts: 11

Original Poster
Rep: Reputation: 0
I tried to create a profile.local again today. I receive the same message:
bash: /bin/ls: Argument list too long

Feels like I'm wasting too much time on this. Has anyone else had this trouble? This time I only changed the UMASK to 027 in the /etc/profile.local.

I guess the reason I'm doing this is that I want users to put files in a directory on the server that can be edited by the group. I don't want users changing the permissions for every file they use. I'm correct in changing the UMASK only right??

Thanks.
 
Old 06-02-2009, 02:03 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
umask is only relevant when they create new files.
What you want to have is setgid on the directory.


Cheers,
Tink
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need some help recovering from profile.local jhenager SUSE / openSUSE 2 09-26-2005 02:39 PM
what's the local profile for /bin/sh jackandking Linux - Newbie 3 05-13-2005 02:46 AM
etc/profile.local setup for different shells breenbaron Linux - General 0 03-31-2004 02:45 AM
cannot find local profile Peds222 Linux - Networking 2 09-11-2003 02:03 PM
.bashrc,profile.local Cichlid Linux - Distributions 1 01-08-2002 05:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration