Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 25th, 2011, 07:17 AM
>>>RAM>>> >>>RAM>>> is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2010
Posts: 28 >>>RAM>>> User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 2 m 2 sec
Reputation Power: 0
TTY, access rights, impact

Hi all.

I've got the situation in which some command should open the TTY for writing. It's called with permissions that do not allow writing to this TTY.

I modify bash script and I have 3 solutions to avoid this issue, here they are:
1) to add write permissions for `other` (chmod o+w My_tty)
2) to change group-owner (chgrp applicable_group My_tty)
3) to change user-owner (# chown applicable_user My_tty)

The above actions are to be placed by me right before calling of my command.

My question is: what is the best? For the last solution I need to perform this action under root - it's not convenient and requires additional manipulations. As for the second solution - I think that it's better that all TTYs belong to tty group. And the first solution looks nice for me - simple and provides what I need. But in this case it seems like everyone will be able to write to this TTY (although it is unlikely will be used by my target users).

So, what do you think of it? Can you guess any unexpected impact for each solution? Maybe there's a better solution. Any offers and comments are welcome.


Thanks in advance,

>>>RAM>>>.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > TTY, access rights, impact

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap