Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3390688
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:43:13+00:00 2026-05-18T03:43:13+00:00

The sources for my code all belong to the unix group group1 : >

  • 0

The sources for my code all belong to the unix group group1:

> ls -l *c
-rw-r--r--  1 user1 group1 4976 Nov  9 13:42 commands.c
-rw-r--r--  1 user1 group1 2347 Nov  9 13:42 env_list.c
-rw-r--r--  1 user1 group1 2468 Nov  9 13:42 job_list.c
-rw-r--r--  1 user1 group1 4453 Nov  9 13:42 jobs.c
-rw-r--r--  1 user1 group1 3278 Nov  9 13:42 smash.c
-rw-r--r--  1 user1 group1 2151 Nov  9 13:42 variable.c

gcc belongs to group2:

> ls -l gcc
-rwxrwsr-x  1 toolsusr group2 72 Dec 30  2008 /usr/intel/pkgs/gcc/4.3.2/bin//gcc

For some reason, when I compile, all of the targets are marked as belonging to group2. However, when I compile a similar project, the targets remain under group1.

How can I control the group (and while I’m at it, any other permissions) of the generated files?

I am using gcc 4.3.2 and this version of Linux: x86-64_linux_2.6.5_ImageSLES9SP3-3

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T03:43:14+00:00Added an answer on May 18, 2026 at 3:43 am

    Take a look at the stick bit of the directory you are compiling in. If set, it will make all of the files written to that directory have the same group of the directory itself. If it is not set, they will have the default group of the user who is writing the file (the user who ran gcc).
    You can use

    chmod +t dir
    

    to add the sticky bit to a directory.

    Comment:

    It’s not the sticky bit, but rather the setguid bit:

    chmod +s dir
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to move all the hard coded strings in my source code in
right now i am simply ftping everything (all of my source code included) but
My entire source code base is < 20MB. I want it all loaded in
I recently had a hard drive crashed and lost all of my source code.
I've read various sources but I'm unsure how to implement them into my code.
I'm looking to create a custom date picker with code examples from several sources.
I am attempting to construct my own date picker using code from several sources.
I am attempting to construct my own date picker using code from several sources.
I'm using this code @events = Event.all(:include => [:facility_infos, :activity_infos], :conditions => ['infos.language_id =
I have included my two code sources below. The problem that I am having

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.