go to directory with other user


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers go to directory with other user
# 1  
Old 11-10-2010
Bug go to directory with other user

Hi ,
I have create new user xyz
when I do
su - xyz
I connect from user xyz The directory is /home/xyz
but when I try to go to directory /home/xyz1 It show permission denied
How can go to the directory /home/xyz1 with user xyz
# 2  
Old 11-10-2010
try this:
Code:
ls -ld /home/xyz1

This will show the permissions on the xyz1 directory: e.g., drwxr-x---
The last red bit has to be at least --x.

AS root try:
Code:
cd /home
chmod +x xyz1

This User Gave Thanks to jim mcnamara For This Post:
# 3  
Old 11-15-2010
MySQL

Quote:
Originally Posted by jim mcnamara
try this:
Code:
ls -ld /home/xyz1

This will show the permissions on the xyz1 directory: e.g., drwxr-x---
The last red bit has to be at least --x.

AS root try:
Code:
cd /home
chmod +x xyz1

Thanks for reply
In this method all other users will also be able to access that xyz1 directory . I only want for particular user
Now what I find we can add user to the xyz1 users's group as following way
Quote:
useradd -G {group-name of xyz1} username


Last edited by kaushik02018; 11-16-2010 at 01:20 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

SunOS confusing root directory and user home directory

Hello, I've just started using a Solaris machine with SunOS 5.10. After the machine is turned on, I open a Console window and at the prompt, if I execute a pwd command, it tells me I'm at my home directory (someone configured "myuser" as default user after init). ... (2 Replies)
Discussion started by: egyassun
2 Replies

2. UNIX for Dummies Questions & Answers

How to remove directory of a particular user?

How to remove directory of a particular user (1 Reply)
Discussion started by: pspriyanka
1 Replies

3. AIX

How to restrict user to a particular directory?

hi, I want to restrict some user access to only 1 directory (including all sub-directories/files in it). can you please explain me, how can we do this? example; Filesystem GB blocks Used Free %Used Mounted on /dev/hd4 2.61 1.02 1.59 40% / /dev/hd2 ... (7 Replies)
Discussion started by: aaron8667
7 Replies

4. Programming

Trying to ssh as another user and cd to directory

I can ssh to another directory by doing the following: for server in server1; do ssh -t $server1 "cd /tmp; 'ls'";done However, if I try to do it as another user it fails: I have tried: for server in server1 do dir=$(su - nbadaccount -c "ssh $server `cd '/tmp/TSTCON'` " ) pwd... (3 Replies)
Discussion started by: newbie2010
3 Replies

5. Red Hat

Restrict user to a particular directory

Hi I have a Fedora10 server and i need a particular user to view files only in a particular folder. All other files in other folders having "read" permission for all shouldn't be accessible to this user. Please let me know if ther's a way. Thanks, HG (5 Replies)
Discussion started by: Hari_Ganesh
5 Replies

6. AIX

Freeze user in one directory

Guy's I have user calld appuser home directory of this user is : /app/application when this user login , user will be direct under this directory /app/application I want to keep and freeze this user in his home directory to be able to access only his home directory and denied it... (2 Replies)
Discussion started by: Mr.AIX
2 Replies

7. Red Hat

User's home directory

Hi, By default user's home directory will be /home/$user. I want to change it to /javauser/$user. How can I do it? Thanks Jeevan. (5 Replies)
Discussion started by: jredx
5 Replies

8. UNIX for Dummies Questions & Answers

How to see a user's permissions on a directory

i know about ls, I know.... but some of our shares have a long messy list of acls and it is a lot to sort through.. without a grep option, unless you have a really nice one, is there a simple way to say: show me <USER> acl permissions on <SHARE> ? (1 Reply)
Discussion started by: glev2005
1 Replies

9. Solaris

Restricting SFTP user to a defined directory and home directory

Hi, I've created solaris user which has both FTP and SFTP Access. Using the "ftpaccess" configuration file options "guest-root" and "restricted-uid", i can restrict the user to a specific directory. But I'm unable to restrict the user when the user is logged in using SFTP. The aim is to... (1 Reply)
Discussion started by: sftpuser
1 Replies

10. UNIX for Dummies Questions & Answers

user directory

Hi, I'm trying to create a user using # useradd -g oracle -d /export/home/oracle oracle however when I check in /export/home there is nothing created. what am I doing wrong? Thanks!! :D (4 Replies)
Discussion started by: ffpradella
4 Replies
Login or Register to Ask a Question