how to hide the path users on the symlink.


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat how to hide the path users on the symlink.
# 1  
Old 10-02-2012
how to hide the path users on the symlink.

Hello,

can someone please suggest or is it possible to hide the path for the link[/data/sftphome/sftpuser1/sftpdata/] from viewing it from remote users.

for examples.

as root user login
Code:
#ls -l
lrwxrwxrwx 1 root root 43 Oct  2 16:05 sftpdata -> /data/sftphome/sftpuser1/sftpdata/
#pwd
/home/user1
#

when user1 logs in, he need to see the sftpdata dir but not the sym link, as show below. Is this possible to configure ??
Code:
$id 
uid=1003(user) gid=1000(group) groups=1000(group)
$ls -l 
lrwxrwxrwx 1 root root 43 Oct  2 16:05 sftpdata
$

Thanks,
# 2  
Old 10-02-2012
It's a symlink. To find the destination, it has to contain it. If the user can't find it, neither can the kernel.

You can do mount --bind /path/to/something /path/to/something/else to attach two folders in a manner ls can't trace though.
# 3  
Old 10-02-2012
I thought of using mount with bind option, but in my case, I have to mount it on 10 users user home directories. so I thought of going with symlink.
my team member mentioned, we can configure this by using sticky bit, but not sure how to do that. He mentioned using stickybit, root user can see the sym link, but not remote users.-- any idea.

Thanks.
# 4  
Old 10-02-2012
Using the -L option instead will list the sym-link as you wish. (At least with the GNU version of ls.)
# 5  
Old 10-02-2012
HP-UX 10 is the only OS that I am aware of that gives special meaning to the sticky bit on a symbolic link. Evidently it is used to indicate a transition link.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Symlink

I know how to create a symlink but I am getting an error message that the file already exists. Also, my symlink doesn't point from target directory to the path correctly, Here is an example of the path to my folder structure path: cd /wkspce/wff/DEV/jobs/DEL the folder structure is: ... (3 Replies)
Discussion started by: dellanicholson
3 Replies

2. Shell Programming and Scripting

Symlink creation

I am trying to setup my plex server to use symlinks rather than host the movie files. in my storage directory, i have both movies(some in subdirectory of the name and some just in the parent directory) and tvshows, which have subdirectories for each season, which contains the episodes i would... (3 Replies)
Discussion started by: bandion
3 Replies

3. UNIX for Dummies Questions & Answers

Remove symlink and target

i would like to remove a directory and also symlink target inside. my_directory -- file1 -> /targetpath/file1 -- file2 -> /targetpath/file2 rm -rf my_directory will not remove symlink target. rm -rf "`readlink -f file1`" will only remove target if specifying the symlink is specified ... (4 Replies)
Discussion started by: lsy
4 Replies

4. Programming

How to hide from UNIX strings - obfuscate or hide a literal or constant?

Hi, I need to somehow pipe the password to a command and run some SQL, for example, something like echo $password | sqlplus -s system @query01.sql To make it not so obvious, I decided to try out writing a small C program that basically just do echo $password. So now I just do x9.out | sqlplus... (8 Replies)
Discussion started by: newbie_01
8 Replies

5. HP-UX

How to set PATH variable for all HP-UX users when they login using ssh?

Hello friends, I need to set PATH variable for all HP-UX users. I tried to implement it using /etc/profile and /etc/sshrc both none of them work. I don't see sshrc file anywhere. Please advise! TIA (4 Replies)
Discussion started by: prvnrk
4 Replies

6. Ubuntu

Creating conditional symlink

Hi All, Is there any way to create a symlink that will point to last 1000 line of a log file. My symlink will always point to "tail -1000 logfile". This can be achieved by writing a script and scheduling with high frequency, but I am looking for some other alternatives. Please let me know... (8 Replies)
Discussion started by: sussus2326
8 Replies

7. Shell Programming and Scripting

ln -s creates symlink in symlink, if [ -f ... ] says file that exists doesn't exist

Hi Forums, I got a little problem, I made a few modifications to the code of the launch script of a testing server(minecraft) and now updating is broken aswell as the automatic directory creation. These Lines somehow create an endless symlink that refers to itself and I don't know how to fix... (0 Replies)
Discussion started by: Xaymar
0 Replies

8. UNIX for Dummies Questions & Answers

creating symlink

hi... I have a folder<abc> under /root folder. I want to create a symlink such that when i click on folder<abc> under root, should display my home folder (home/krish). Immediate inputs appreciated..... (1 Reply)
Discussion started by: rama.honge
1 Replies

9. UNIX for Advanced & Expert Users

list users current path

Looking for a command which shows the current path of other users. Similiar to the PWD command. Need to be able to see which part of the system the user is logged on to. Thanks G (1 Reply)
Discussion started by: Gandalf77
1 Replies

10. UNIX for Advanced & Expert Users

set path so all new users can execute the command in /bin/mycommands

I want to add a default path /bin/mycommands along with others to be loaded as default path for all new accounts created on my system . With out the new accounts not having to change thie manually to /bin/mycommands.Do I change the /etc/profile ? is there any better way? Please throw some... (2 Replies)
Discussion started by: sravusa
2 Replies
Login or Register to Ask a Question