To provide restricted access to certain user's on linux box


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting To provide restricted access to certain user's on linux box
# 1  
Old 08-27-2008
To provide restricted access to certain user's on linux box

Hi,

I need to provide execute access to certain users and not to all users

For ex: if ther is a file /home/august/aug.sh.

and there are user's like jan,feb,mar,april,May and jan is the owner of that box. I need to provide execute access to feb and mar only. I also know the root pwd for that box. So if use "chmod 777 /home/august/aug.sh" using root login then all the users wil get execute access(which i shuld not give). So wat shuld i do to give execute access only to feb and mar users.
Ashok_oct22
# 2  
Old 08-27-2008
You can make those members part of a group and assign execute permission to the group.

eg Supposing group is execute
Code:
usermod -G execute feb
 chmod 754 /home/august/aug.sh

# 3  
Old 08-27-2008
Do i need to execute the above code using root login or by using the owner of the group. Also wat s d command to chk who r al d users of that box?
Ashok_oct22
# 4  
Old 08-27-2008
Above code is to be executed using root login. Group must exist, if it doesn't you need to create that first.

All users are listed in /etc/passwd file with uid > 500.


I suggest you study a bit more about linux/unix first before executing commands as root.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to shutdown Linux box with user confirmation?

Hi Guru's Am looking for linux reboot command which get executed after user confirmation .Can someone please help me with this.:confused::confused::confused: (6 Replies)
Discussion started by: kapil514
6 Replies

2. Red Hat

How to access redhat Linux box graphically from windows box?

Hi I have a linux box and need to access from windows graphically # uname -a Linux pc-l416116 2.6.18-155.el5 #1 SMP Fri Jun 19 17:06:47 EDT 2009 i686 i686 i386 GNU/Linux What components do I need to install on Linux and windows to do that? TIA (6 Replies)
Discussion started by: magnus29
6 Replies

3. Shell Programming and Scripting

help to access windows share from linux box

how to access windows share from a linux box windows machin is in different workgroup so how to pass credentials whil acessing a share from a script (2 Replies)
Discussion started by: robo
2 Replies

4. Ubuntu

Restricted access possibilities

Hi, I have given a laptop from company with Ubuntu 10.04 on it. I have restricted access over it, means I have been given sudo login on it. SO I am unable to so many major activities over it, Can you all people tell me the Terminal tricks that I can use to get my hands on it. (1 Reply)
Discussion started by: nixhead
1 Replies

5. AIX

A user with restricted ftp access to a folder

Hi, We have Oracle Database on AIX 5.3 server.We want to give ftp access to a user to a specific folder.He should be able to put and get files from that specific folder only.Moreover he should not be able to cd to any other filesystems also along with root directory. Please note that as per... (1 Reply)
Discussion started by: dwiravi
1 Replies

6. UNIX for Dummies Questions & Answers

/etc/sudoers - Restricted Access

Hi Expert, I have 2 questions. Scenario: Users login via ssh from other location, using putty. or any other equivalent ssh tunnel. All users has been assigned as sudoers due to testing environment. 1. How to disable sudoers from editing /etc/sudoers e.g $ sudo vi /etc/sudoers 2.... (3 Replies)
Discussion started by: regmaster
3 Replies

7. HP-UX

how to view restricted sam access

Hello everybody, i need to check which users have resticted sam access..can anybody please let me know how to check this..? Thanks in advance.. (4 Replies)
Discussion started by: laxmikant
4 Replies

8. UNIX for Advanced & Expert Users

Creating USERs with restricted Access

Hi There, i need to creat USERS in UNIX with restricted access to different directories. for example user1 should have access to dir1 and dir2 user2 should have access to dir2 and dir3 Please help me (4 Replies)
Discussion started by: ramanan25
4 Replies

9. UNIX for Dummies Questions & Answers

Restricted SSH Access

OS: FreeBSD 4.9-RELEASE I have ssh up and running. However, I need to restrict users to their home directory and to links withing those directories (i.e. htdocs/mysite and mysql/var). Is this possible? Any Suggestions? Thanks In advance. (2 Replies)
Discussion started by: ezekiel61
2 Replies

10. Linux

get innet access by dualup to linux box connected to dsl through phone line modem

Hi! I'm looking for a sollution on this task: is there any way to make linux as some sort of personal ISP, with would let me/somebody else get internet access by dialing up to linux box through phoneline? to use it as sort of a proxy or something simular? I could manage it on windows 2000... (2 Replies)
Discussion started by: V@no
2 Replies
Login or Register to Ask a Question