LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 03-26-2008, 05:53 AM   #1
ajeetraina
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu,Red Hat, Fedora
Posts: 292

Rep: Reputation: 30
Stick Bit Assigning Issue??


How can I assign the following permission to a file "test"

drwxr-sr-x 5 vjs vjs 4096 2008-03-26 14:11 db

Whenever I am trying :

$sudo chmod g+s test
Output it is throwing:

-rwxr-Sr-x

Pls Help
 
Old 03-26-2008, 07:59 AM   #2
devnull0
LQ Newbie
 
Registered: Jul 2007
Location: GA
Distribution: LFS
Posts: 23

Rep: Reputation: 15
Post Wrong chmod?

You are accidently ading the 'setgid' bit, which allows a file to run as the group id of the group that owns it. This is not what you want to do, try
Code:
sudo chmod g+t dirname
. To read more about chmod(1), try man 1 chmod or http://linux.die.net/man/1/chmod
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Im having an issue with a java app on 64 bit mandriva Blackhawkckc Linux - Software 2 03-31-2008 06:16 PM
setting up stick bit on file/directory bavondrake AIX 3 09-20-2007 03:27 PM
GCC issue in 64 bit Linux arya Linux - Software 2 04-19-2007 04:20 PM
Mozilla Issue... Need a tiny bit of help inspectreo Linux - Newbie 4 04-23-2005 01:28 AM
Mixing 512MB Ram 2700 stick with a 256MB 3200 stick? Will it screw things up? Fear58 Linux - Hardware 2 07-15-2004 02:20 PM

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

All times are GMT -5. The time now is 08:19 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration