09-13-2011
Quote:
Originally Posted by
COKEDUDE
The only way that would be possible is if I give write permission on the /etc directory.
Not true, directory permissions don't control that. If you
chown :group /etc/resolv.conf ; chmod g+rw /etc/resolv.conf then anyone in
group will be able to modify it.
Quote:
The /etc/resolv.conf keeps getting messed up.
Fixing /etc/resolv.conf every time it gets messed up isn't really a solution... It's like stocking extra fire extinguishers instead of fixing a smoking electrical short. If you don't want whatever autoconfig keeps messing up the file to do so, disable it.
10 More Discussions You Might Find Interesting
1. Solaris
dear all
does any one give any user write permission using access control list or another way to solve this problem (1 Reply)
Discussion started by: murad.jaber
1 Replies
2. Solaris
Hi experts,
I have a user "bingo" in my sunsolaris 9.
# /etc/passwd
bingo:x:513:1::/export/home/bingo:/bin/bash
when anyone Telnet to this user it goes to his home directory /export/home/bingo
But now i want- when someone FTP to this user "bingo" it will NOT go to his home dir. Rather it... (5 Replies)
Discussion started by: thepurple
5 Replies
3. UNIX for Dummies Questions & Answers
hello,
I would like to grant full access to a directory which is owned by root and the web application that created it. I have though of adding the permission to the whole world, but for security reason I would like to grant it to one more user.
I have tried this 'chmod -U newUser+wrx... (2 Replies)
Discussion started by: run123
2 Replies
4. Solaris
I need to create a user account for a developer that will allow him rwx access to all resources in a directory. How can I do that?
Thanks (5 Replies)
Discussion started by: gsander
5 Replies
5. Solaris
is is possible to grant user access to only one subdirectory? example
a. create ftp user with read/write/delete access (ftp user doesnt belong to uguys group)
$ cd /etc/mydir
$ls
file1 file2
$ls -al
-rw-rw-r-x 2 unixguy uguys 96 Dec 8 12:53 file1
-rw-rw-r-x 2 unixguy uguys 96 Dec 8... (1 Reply)
Discussion started by: lhareigh890
1 Replies
6. Solaris
Hi all,
I want to create a new user and grant him ONLY transfer files access to a specific directory where he can only upload and read the files. He should be restricted to this activity only.
Regards (6 Replies)
Discussion started by: gilldn
6 Replies
7. Solaris
Hi,
I have searched "Limit FTP user's access to a specific directory" subject for 3 days. I found proftp and vsftp but i couldn't compile and install. Is there any idea. Please suggest. (6 Replies)
Discussion started by: hamurd
6 Replies
8. Solaris
Hello Team,
I have Solaris 10 u6
I have a user test1 using bash that belong to the group staff.
I would like to restrict this user to navigate only in his home directory and his subfolders but not not move out to other directories.
How can I do it ?
Thanks in advance (1 Reply)
Discussion started by: csierra
1 Replies
9. UNIX for Advanced & Expert Users
Hello Folks,
Of course i came here for your favour :)
How to set a defalult home directory for sFTP login ( at present users land in to their home directrory) when they connect from specific server.
When server(A) sFTP's to Linux server(B) they land to thier home directory.
I want... (5 Replies)
Discussion started by: Thala
5 Replies
10. UNIX for Beginners Questions & Answers
Hello,
I have a user Bob on a RHEL 7 server1. Where his script area is "/home/Bob/scripts/" and he is the owner for this directory.
On the server1, there is a NFS mount from another server2, with path as "/global/work/" and Bob is the owner for this directory too in server2. (Same UID and GID... (5 Replies)
Discussion started by: karumudi7
5 Replies
LEARN ABOUT REDHAT
host.conf
HOST.CONF(5) Linux System Administration HOST.CONF(5)
NAME
host.conf - resolver configuration file
DESCRIPTION
The file /etc/host.conf contains configuration information specific to the resolver library. It should contain one configuration keyword
per line, followed by appropriate configuration information. The keywords recognized are order, trim, multi, nospoof, and reorder. These
keywords are described below.
order This keyword specifies how host lookups are to be performed. It should be followed by one or more lookup methods, separated by com-
mas. Valid methods are bind, hosts, and nis.
trim This keyword may be listed more than once. Each time it should be followed by a single domain name, with the leading dot. When
set, the resolv+ library will automatically trim the given domain name from the end of any hostname resolved via DNS. This is
intended for use with local hosts and domains. (Related note: trim will not affect host- names gathered via NIS or the hosts file.
Care should be taken to ensure that the first hostname for each entry in the hosts file is fully qualified or non-qualified, as
appropriate for the local installation.)
multi Valid values are on and off. If set to on, the resolv+ library will return all valid addresses for a host that appears in the
/etc/hosts file, instead of only the first. This is off by default, as it may cause a substantial performance loss at sites with
large hosts files.
nospoof
Valid values are on and off. If set to on, the resolv+ library will attempt to prevent hostname spoofing to enhance the security of
rlogin and rsh. It works as follows: after performing a host address lookup, resolv+ will perform a hostname lookup for that
address. If the two hostnames do not match, the query will fail.
spoofalert
If this option is set to on and the nospoof option is also set, resolv+ will log a warning of the error via the syslog facility.
The default value is off.
reorder
Valid values are on and off. If set to on, resolv+ will attempt to reorder host addresses so that local addresses (i.e., on the
same subnet) are listed first when a gethostbyname(3) is performed. Reordering is done for all lookup methods. The default value
is off.
FILES
/etc/host.conf
Resolver configuration file
/etc/resolv.conf
Resolver configuration file
/etc/hosts
Local hosts database
SEE ALSO
gethostbyname(3), hostname(7), resolv+(8), named(8)
Debian GNU/Linux 1997-01-02 HOST.CONF(5)