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 PHP
eventdnsbase
EVENTDNSBASE(3) 1 EVENTDNSBASE(3)
The EventDnsBase class
INTRODUCTION
Represents Libevent's DNS base structure. Used to resolve DNS asyncronously, parse configuration files like resolv.conf etc.
CLASS SYNOPSIS
EventDnsBase
final
EventDnsBase
Constants
o const integer$EventDnsBase::OPTION_SEARCH1
o const integer$EventDnsBase::OPTION_NAMESERVERS2
o const integer$EventDnsBase::OPTION_MISC4
o const integer$EventDnsBase::OPTION_HOSTSFILE8
o const integer$EventDnsBase::OPTIONS_ALL15
Methods
o public bool EventDnsBase::addNameserverIp (string $ip)
o public void EventDnsBase::addSearch (string $domain)
o public void EventDnsBase::clearSearch (void )
o public EventDnsBase::__construct (EventBase $base, bool $initialize)
o public int EventDnsBase::countNameservers (void )
o public bool EventDnsBase::loadHosts (string $hosts)
o public bool EventDnsBase::parseResolvConf (int $flags, string $filename)
o public bool EventDnsBase::setOption (string $option, string $value)
o public bool EventDnsBase::setSearchNdots (int $ndots)
PREDEFINED CONSTANTS
o EventDnsBase::OPTION_SEARCH - Tells to read the domain and search fields from the resolv.conf file and the ndots option, and use
them to decide which domains(if any) to search for hostnames that aren't fully-qualified.
o EventDnsBase::OPTION_NAMESERVERS - Tells to learn the nameservers from the resolv.conf file.
o EventDnsBase::OPTION_MISC -
o EventDnsBase::OPTION_HOSTSFILE - Tells to read a list of hosts from /etc/hosts as part of loading the resolv.conf file.
o EventDnsBase::OPTIONS_ALL - Tells to learn as much as it can from the resolv.conf file.
PHP Documentation Group EVENTDNSBASE(3)