please tell me which command to use to add user for samba and ftp?
add user only in this file?
To access a samba share with user level access there must be users added to the system by editing /etc/passwd
or add to all three
/etc/group
/etc/passwd
/etc/shadow
Sorry @neil1, I don't use ftp and don't know what's needed, was just pointing you to what @jgslade had suggested.
From the samba wiki:
user in this example will be called 'newuser'“ (this is the loginname you need to enter, when Windows pops up the authentication dialogue)
with the unique system ID '1000'
with the group id '65534' (which is the group identifier for 'nobody'= no special default group)
'/var' just means the user will not need a special home folder on the system
'/bin/false' means the user will not have a default shell program associated
smbpasswd -a newuser
Once you have done that
Run:
passwd newuser
Replace newuser with the user name you want in all commands
passwd newuser
passwd: no record of newuser in /etc/shadow, using /etc/passwd
Changing password for newuser
New password:
samba is working but still ftp is not working
what is this error?
/etc/init.d/vsftpd start
500 OOPS: config file not owned by correct user, or not a file
It looks like the vsftpd.conf file has the incorrect permissions. Give the output of
ls -l /etc/vsftpd.conf
ls -l /etc/vsftpd.conf
-rw------- 1 110 114 825 Sep 9 01:25 /etc/vsftpd.conf`Preformatted text`
Root should be the owner of that file, run:
chown root: /etc/vsftpd.conf
thank you it is working. FTP is working
now please tell me how to point ftp login to USB attached device? USB drive it is already mounted.
In your vsftpd.conf file you need
local_root=<path to usb device>
i changed it in the /etc/passwd
using this post
or do it by your method?
That way is probably the better way, it's scalable to more users. I'd say give it a go.
one more issue
I was unable to mount or use ntfs formatted USB. I format it with fat32 and it is now working fine.
Openwrt doesn't support ntfs?
this might be build related
I was getting errors when I mounted my regular ext4 partitions... so I commented out ( added a hash ) in '/etc/filesystems';
#ntfs-3g
try removing the hash...
or you could also try removing ntfs3g and installing 'antfs'... the general recommendation for openwrt is to use ext2/4... while many happily use ntfs... it does require an 'extra level' of awareness...
i have one more question if i change my password using
passwd newuser
will it change password for both samaba username and ftp user name?
if both have same username?
why bandwidth monitor resets after power failure? isn't it suppose to backup that data?
from
and
( 10 characters )
No samba stores it's passwords separately so if you are wanting to change the password you'll need to use the smbpasswd
and the passwd
commands.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.