root login problem

after install freebsd. i can access using admin but can not access using root. i have to put some files in root dir.


i am using putty and privateshell.
 
zodehala said:
after install freebsd. i can access using admin but can not access using root. i have to put some files in root dir.
i am using putty and privateshell.
by default ssh login as root is disabled. add user in wheel group, allow ssh login to this user and then su/sudo to execute as root.
allowing directly root logins over ssh lead to potential security problems
 
mk said:
by default ssh login as root is disabled. add user in wheel group, allow ssh login to this user and then su/sudo to execute as root.
allowing directly root logins over ssh lead to potential security problems

but how can i change some file in root dir
 
first you have to be root user then you can change file you want ,does the box owned by you or you only normal user .
 
zodehala said:
how? (i am new to FreeBSD)

Edit your /etc/group file and change the 'wheel' line from

Code:
wheel:*:0:root

to

Code:
wheel:*:0:root,user1,user2

Existing users user1 and user2 can 'su' to get root permissions
You need root permissions to do this.
 
Alt said:
Do not edit them manually =)

Do an (sure under root)
Where user1 is your username

i did you said
Code:
su 
pw groupmod wheel -m admin

but whenever i send file to server as admin (username is admin ) following error

snap1xqx.gif
 
zodehala said:
but whenever i send file to server as admin (username is admin ) following error

snap1xqx.gif
You need to make sure your admin user has write permission in that directory. This has nothing to do with root.
 
Login using ssh, su or sudo to root and change the ownership of /usr/home/ssp to admin.

# chown -R admin:admin /usr/home/ssp
 
You see on screenshot that owner is root, not your user ?
And owner group is equal as yours, so you must set W right to group not only owner
 
zodehala said:
Code:
localhost# chown -R admin:admin /usr/home/ssp/sippy_web
chown: admin: Invalid argument

What does id -a tell you?

While you're at it, change the hostname in /etc/rc.conf to something other then localhost.
 
Back
Top